net.adamcin.httpsig.ssh.jce
Enum KeyFormat

java.lang.Object
  extended by java.lang.Enum<KeyFormat>
      extended by net.adamcin.httpsig.ssh.jce.KeyFormat
All Implemented Interfaces:
Serializable, Comparable<KeyFormat>

public enum KeyFormat
extends Enum<KeyFormat>


Enum Constant Summary
SSH_DSS
           
SSH_RSA
           
UNKOWN
           
 
Method Summary
static KeyFormat forIdentifier(String identifier)
           
 String getFingerprint(PublicKey publicKey)
           
 String getIdentifier()
           
 String getKeyAlgorithm()
           
 KeyFactory getKeyFactory()
           
 List<Algorithm> getSignatureAlgorithms()
           
 Signature getSignatureInstance(Algorithm algorithm)
           
static KeyFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KeyFormat[] 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

SSH_DSS

public static final KeyFormat SSH_DSS

SSH_RSA

public static final KeyFormat SSH_RSA

UNKOWN

public static final KeyFormat UNKOWN
Method Detail

values

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

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

valueOf

public static KeyFormat 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

getIdentifier

public String getIdentifier()

getKeyAlgorithm

public String getKeyAlgorithm()

getKeyFactory

public KeyFactory getKeyFactory()

getSignatureAlgorithms

public List<Algorithm> getSignatureAlgorithms()

getFingerprint

public String getFingerprint(PublicKey publicKey)

getSignatureInstance

public Signature getSignatureInstance(Algorithm algorithm)

forIdentifier

public static KeyFormat forIdentifier(String identifier)


Copyright © 2013-2014. All Rights Reserved.