|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.transport.security.SecurityPolicy
public final class SecurityPolicy
Security Policy determines which algorithms to use during asymmetric and symmetric encryption.
for instantiating cryptographics objects| Field Summary | |
|---|---|
static SecurityPolicy |
BASIC128RSA15
Constant BASIC128RSA15 |
static SecurityPolicy |
BASIC256
Constant BASIC256 |
static SecurityPolicy |
BASIC256SHA256
Constant BASIC256SHA256 |
static SecurityPolicy |
NONE
Constant NONE |
static String |
URI_BINARY_BASIC128RSA15
Constant URI_BINARY_BASIC128RSA15="http://opcfoundation.org/UA/SecurityPol"{trunked} |
static String |
URI_BINARY_BASIC256
Constant URI_BINARY_BASIC256="http://opcfoundation.org/UA/SecurityPol"{trunked} |
static String |
URI_BINARY_BASIC256SHA256
Constant URI_BINARY_BASIC256SHA256="http://opcfoundation.org/UA/SecurityPol"{trunked} |
static String |
URI_BINARY_NONE
Constant URI_BINARY_NONE="http://opcfoundation.org/UA/SecurityPol"{trunked} |
static String |
URI_XML_BASIC128RSA15
Constant URI_XML_BASIC128RSA15="http://opcfoundation.org/UA-Profile/Sec"{trunked} |
static String |
URI_XML_BASIC256
Constant URI_XML_BASIC256="http://opcfoundation.org/UA-Profile/Sec"{trunked} |
static String |
URI_XML_NONE
Constant URI_XML_NONE="http://opcfoundation.org/UA-Profile/Sec"{trunked} |
| Method Summary | |
|---|---|
static void |
addSecurityPolicy(SecurityPolicy policy)
Add new security policy to stack |
boolean |
equals(Object obj)
|
static SecurityPolicy[] |
getAllSecurityPolicies()
Get all security policies supported by the stack |
SecurityAlgorithm |
getAsymmetricEncryptionAlgorithm()
Getter for the field asymmetricEncryptionAlgorithm. |
SecurityAlgorithm |
getAsymmetricKeyWrapAlgorithm()
Getter for the field asymmetricKeyWrapAlgorithm. |
SecurityAlgorithm |
getAsymmetricSignatureAlgorithm()
Getter for the field asymmetricSignatureAlgorithm. |
byte[] |
getEncodedPolicyUri()
Getter for the field encodedPolicyUri. |
int |
getEncryptionBlockSize()
Getter for the field encryptionBlockSize. |
int |
getEncryptionKeySize()
Getter for the field encryptionKeySize. |
SecurityAlgorithm |
getKeyDerivationAlgorithm()
Getter for the field keyDerivationAlgorithm. |
int |
getMaxAsymmetricKeyLength()
Getter for the field maxAsymmetricKeyLength. |
int |
getMinAsymmetricKeyLength()
Getter for the field minAsymmetricKeyLength. |
String |
getPolicyUri()
Getter for the field policyUri. |
static SecurityPolicy |
getSecurityPolicy(String securityPolicyUri)
Get security policy by policy uri |
int |
getSignatureKeySize()
Getter for the field signatureKeySize. |
SecurityAlgorithm |
getSymmetricEncryptionAlgorithm()
Getter for the field symmetricEncryptionAlgorithm. |
SecurityAlgorithm |
getSymmetricSignatureAlgorithm()
Getter for the field symmetricSignatureAlgorithm. |
int |
getSymmetricSignatureSize()
Getter for the field symmetricSignatureSize. |
int |
hashCode()
|
boolean |
isUsableWith(Cert cert)
Checks if a certificate is useable for this security policy. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String URI_BINARY_NONE
URI_BINARY_NONE="http://opcfoundation.org/UA/SecurityPol"{trunked}
public static final String URI_BINARY_BASIC128RSA15
URI_BINARY_BASIC128RSA15="http://opcfoundation.org/UA/SecurityPol"{trunked}
public static final String URI_BINARY_BASIC256
URI_BINARY_BASIC256="http://opcfoundation.org/UA/SecurityPol"{trunked}
public static final String URI_BINARY_BASIC256SHA256
URI_BINARY_BASIC256SHA256="http://opcfoundation.org/UA/SecurityPol"{trunked}
public static final String URI_XML_NONE
URI_XML_NONE="http://opcfoundation.org/UA-Profile/Sec"{trunked}
public static final String URI_XML_BASIC128RSA15
URI_XML_BASIC128RSA15="http://opcfoundation.org/UA-Profile/Sec"{trunked}
public static final String URI_XML_BASIC256
URI_XML_BASIC256="http://opcfoundation.org/UA-Profile/Sec"{trunked}
public static final SecurityPolicy NONE
NONE
public static final SecurityPolicy BASIC128RSA15
BASIC128RSA15
public static final SecurityPolicy BASIC256
BASIC256
public static final SecurityPolicy BASIC256SHA256
BASIC256SHA256
| Method Detail |
|---|
public static void addSecurityPolicy(SecurityPolicy policy)
policy - a SecurityPolicy object.public static SecurityPolicy[] getAllSecurityPolicies()
public static SecurityPolicy getSecurityPolicy(String securityPolicyUri)
throws ServiceResultException
securityPolicyUri - security policy uri
ServiceResultException - Bad_SecurityPolicyRejected if policy is unknownpublic boolean equals(Object obj)
equals in class Objectpublic SecurityAlgorithm getAsymmetricEncryptionAlgorithm()
Getter for the field asymmetricEncryptionAlgorithm.
SecurityAlgorithm object.public SecurityAlgorithm getAsymmetricKeyWrapAlgorithm()
Getter for the field asymmetricKeyWrapAlgorithm.
SecurityAlgorithm object.public SecurityAlgorithm getAsymmetricSignatureAlgorithm()
Getter for the field asymmetricSignatureAlgorithm.
SecurityAlgorithm object.public byte[] getEncodedPolicyUri()
Getter for the field encodedPolicyUri.
public int getEncryptionBlockSize()
Getter for the field encryptionBlockSize.
public int getEncryptionKeySize()
Getter for the field encryptionKeySize.
public SecurityAlgorithm getKeyDerivationAlgorithm()
Getter for the field keyDerivationAlgorithm.
SecurityAlgorithm object.public int getMaxAsymmetricKeyLength()
Getter for the field maxAsymmetricKeyLength.
public int getMinAsymmetricKeyLength()
Getter for the field minAsymmetricKeyLength.
public String getPolicyUri()
Getter for the field policyUri.
String object.public int getSignatureKeySize()
Getter for the field signatureKeySize.
public SecurityAlgorithm getSymmetricEncryptionAlgorithm()
Getter for the field symmetricEncryptionAlgorithm.
SecurityAlgorithm object.public SecurityAlgorithm getSymmetricSignatureAlgorithm()
Getter for the field symmetricSignatureAlgorithm.
SecurityAlgorithm object.public int getSymmetricSignatureSize()
Getter for the field symmetricSignatureSize.
public int hashCode()
hashCode in class Objectpublic boolean isUsableWith(Cert cert)
cert - a Cert object.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||