edu.internet2.middleware.security
Enum XmlSecToolCommandLineArguments.DigestChoice

java.lang.Object
  extended by java.lang.Enum<XmlSecToolCommandLineArguments.DigestChoice>
      extended by edu.internet2.middleware.security.XmlSecToolCommandLineArguments.DigestChoice
All Implemented Interfaces:
Serializable, Comparable<XmlSecToolCommandLineArguments.DigestChoice>
Enclosing class:
XmlSecToolCommandLineArguments

public static enum XmlSecToolCommandLineArguments.DigestChoice
extends Enum<XmlSecToolCommandLineArguments.DigestChoice>

The digest method to use in the various signature algorithms.


Enum Constant Summary
SHA1
          SHA-1 digest.
SHA256
          SHA-256 digest.
SHA384
          SHA-384 digest.
SHA512
          SHA-512 digest.
 
Field Summary
private  String digestAlgorithm
          Digest algorithm.
private  String ecdsaAlgorithm
          ECDSA signature algorithm.
private  String otherName
          Other name (with hyphens, etc.) used as an alternative to the enum name.
private  String rsaAlgorithm
          RSA signature algorithm.
 
Method Summary
static XmlSecToolCommandLineArguments.DigestChoice find(String name)
          Finds the XmlSecToolCommandLineArguments.DigestChoice for a given digest name.
 String getDigestAlgorithm()
          Returns the digest algorithm URI for this digest choice.
 String getEcdsaAlgorithm()
          Returns the ECDSA signature algorithm URI for this digest choice.
 String getRsaAlgorithm()
          Returns the RSA signature algorithm URI for this digest choice.
 boolean hasName(String name)
          Indicates whether the enum can be called by the provided name.
static XmlSecToolCommandLineArguments.DigestChoice valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XmlSecToolCommandLineArguments.DigestChoice[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SHA1

public static final XmlSecToolCommandLineArguments.DigestChoice SHA1
SHA-1 digest.


SHA256

public static final XmlSecToolCommandLineArguments.DigestChoice SHA256
SHA-256 digest.


SHA384

public static final XmlSecToolCommandLineArguments.DigestChoice SHA384
SHA-384 digest.


SHA512

public static final XmlSecToolCommandLineArguments.DigestChoice SHA512
SHA-512 digest.

Field Detail

otherName

private final String otherName
Other name (with hyphens, etc.) used as an alternative to the enum name.


digestAlgorithm

private final String digestAlgorithm
Digest algorithm.


rsaAlgorithm

private final String rsaAlgorithm
RSA signature algorithm.


ecdsaAlgorithm

private final String ecdsaAlgorithm
ECDSA signature algorithm.

Method Detail

values

public static XmlSecToolCommandLineArguments.DigestChoice[] 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 (XmlSecToolCommandLineArguments.DigestChoice c : XmlSecToolCommandLineArguments.DigestChoice.values())
    System.out.println(c);

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

valueOf

public static XmlSecToolCommandLineArguments.DigestChoice 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

getDigestAlgorithm

public String getDigestAlgorithm()
Returns the digest algorithm URI for this digest choice.

Returns:
algorithm URI

getRsaAlgorithm

public String getRsaAlgorithm()
Returns the RSA signature algorithm URI for this digest choice.

Returns:
algorithm URI

getEcdsaAlgorithm

public String getEcdsaAlgorithm()
Returns the ECDSA signature algorithm URI for this digest choice.

Returns:
algorithm URI

hasName

public boolean hasName(String name)
Indicates whether the enum can be called by the provided name. The name is compared ignoring case against the enum name and against the "other" name.

Parameters:
name - name to check against
Returns:
true if and only if the enum can be called by the provided name

find

public static XmlSecToolCommandLineArguments.DigestChoice find(String name)
Finds the XmlSecToolCommandLineArguments.DigestChoice for a given digest name.

Parameters:
name - name of the digest to be found
Returns:
XmlSecToolCommandLineArguments.DigestChoice represented by the name


Copyright © 1999-2013. All Rights Reserved.