org.opcfoundation.ua.transport.security
Enum SecurityAlgorithm

java.lang.Object
  extended by java.lang.Enum<SecurityAlgorithm>
      extended by org.opcfoundation.ua.transport.security.SecurityAlgorithm
All Implemented Interfaces:
Serializable, Comparable<SecurityAlgorithm>

public enum SecurityAlgorithm
extends Enum<SecurityAlgorithm>

OPC UA specific security algorithm URIs and the respective Java StandardNames


Nested Class Summary
static class SecurityAlgorithm.AlgorithmType
           
 
Enum Constant Summary
Aes128
           
Aes256
           
HmacSha1
           
HmacSha256
           
KwRsa15
           
KwRsaOaep
           
PSha1
           
PSha256
           
Rsa15
           
RsaOaep
           
RsaSha1
           
RsaSha256
           
 
Method Summary
 int getKeySize()
          Getter for the field keySize.
 String getMode()
          Getter for the field mode.
 String getPadding()
          Getter for the field padding.
 String getStandardName()
          Getter for the field standardName.
 String getTransformation()
          Getter for the field transformation.
 SecurityAlgorithm.AlgorithmType getType()
          Getter for the field type.
 String getUri()
          Getter for the field uri.
 String toString()
          
static SecurityAlgorithm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SecurityAlgorithm valueOfUri(String algorithmUri)
          Find the SecurityAlgorithm with URI.
static SecurityAlgorithm[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HmacSha1

public static final SecurityAlgorithm HmacSha1

HmacSha256

public static final SecurityAlgorithm HmacSha256

Aes128

public static final SecurityAlgorithm Aes128

Aes256

public static final SecurityAlgorithm Aes256

RsaSha1

public static final SecurityAlgorithm RsaSha1

RsaSha256

public static final SecurityAlgorithm RsaSha256

Rsa15

public static final SecurityAlgorithm Rsa15

RsaOaep

public static final SecurityAlgorithm RsaOaep

KwRsaOaep

public static final SecurityAlgorithm KwRsaOaep

KwRsa15

public static final SecurityAlgorithm KwRsa15

PSha1

public static final SecurityAlgorithm PSha1

PSha256

public static final SecurityAlgorithm PSha256
Method Detail

values

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

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

valueOf

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

getType

public SecurityAlgorithm.AlgorithmType getType()

Getter for the field type.

Returns:
the type

getMode

public String getMode()

Getter for the field mode.

Returns:
the mode

getPadding

public String getPadding()

Getter for the field padding.

Returns:
the padding

getKeySize

public int getKeySize()

Getter for the field keySize.

Returns:
the keySize

getUri

public String getUri()

Getter for the field uri.

Returns:
the uri

getStandardName

public String getStandardName()

Getter for the field standardName.

Returns:
the standardName

toString

public String toString()

Overrides:
toString in class Enum<SecurityAlgorithm>

valueOfUri

public static SecurityAlgorithm valueOfUri(String algorithmUri)
Find the SecurityAlgorithm with URI.

Parameters:
algorithmUri - the Uri to look for
Returns:
the respective SecurityAlgorithm or null if none is found.

getTransformation

public String getTransformation()

Getter for the field transformation.

Returns:
a String object.


Copyright © 2018. All rights reserved.