iaik.xkms
Enum RespondWith

Object
  extended by Enum<RespondWith>
      extended by RespondWith
All Implemented Interfaces:
Serializable, Comparable<RespondWith>

public enum RespondWith
extends Enum<RespondWith>

RespondWith constant definitions.

[102] The <RespondWith> element in a request specifies one or more URI values that SHOULD resolve to data elements provided in either the <ds:KeyInfo> element or private key information. The <RespondWith> element SHOULD be included in requests of type LocateRequest, ValidateRequest, RegisterRequest, ReissueRequest, RevokeRequest, and RecoverRequest. The XML Signature elements are described here for convenience. The normative reference is the XML Digital Signature Specification.

[103] The Service SHOULD return any data elements that are resolvable <RespondWith> URI values and that are supported by the Service. The Service MAY return additional data elements not requested. In particular, the service MAY return data elements specified in the request with the response.

[104] RespondWith values are specified as anyURIs.

[104a] (In the table below, * stands for one or more.).


Enum Constant Summary
KEYNAME
          <ds:KeyName> Key name.
KEYVALUE
          <ds:KeyValue> Public key parameters.
PGP
          <ds:PGPData> PGP key signing data.
PGPWEB
          <ds:PGPData>* Collection of PGP key signing data.
PRIVATE_KEY
          Request that the encrypted private key be returned in the response.
RETRIEVAL_METHOD
          <ds:RetrievalMethod> Retrieval Method data.
SPKI
          <ds:SPKIData>* SPKI key signing.
X509CERT
          <ds:X509Data> X509 Certificate v3 that authenticates the specified key.
X509CHAIN
          <ds:X509Data>* X509 Certificate v3 chain that authenticates the specified key.
X509CRL
          <ds:X509Data> X509 Certificate Revocation List v2.
 
Method Summary
 String toString()
          returns the String representation of this enum constant, including the namespace.
static RespondWith valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RespondWith[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

KEYNAME

public static final RespondWith KEYNAME
<ds:KeyName> Key name.


KEYVALUE

public static final RespondWith KEYVALUE
<ds:KeyValue> Public key parameters.


X509CERT

public static final RespondWith X509CERT
<ds:X509Data> X509 Certificate v3 that authenticates the specified key.


X509CHAIN

public static final RespondWith X509CHAIN
<ds:X509Data>* X509 Certificate v3 chain that authenticates the specified key. Note that no ordering is implied in the returned certificates.


X509CRL

public static final RespondWith X509CRL
<ds:X509Data> X509 Certificate Revocation List v2.


RETRIEVAL_METHOD

public static final RespondWith RETRIEVAL_METHOD
<ds:RetrievalMethod> Retrieval Method data.


PGP

public static final RespondWith PGP
<ds:PGPData> PGP key signing data.


PGPWEB

public static final RespondWith PGPWEB
<ds:PGPData>* Collection of PGP key signing data.


SPKI

public static final RespondWith SPKI
<ds:SPKIData>* SPKI key signing.


PRIVATE_KEY

public static final RespondWith PRIVATE_KEY
Request that the encrypted private key be returned in the response. [Used in the X-KRSS protocol]

Method Detail

values

public static RespondWith[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RespondWith c : RespondWith.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RespondWith valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
returns the String representation of this enum constant, including the namespace.

Overrides:
toString in class Enum<RespondWith>
Returns:
the String representation including the namespace.