-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
AuthenticationProtocol,PrivacyProtocol
- All Known Implementing Classes:
AuthGeneric,AuthHMAC128SHA224,AuthHMAC192SHA256,AuthHMAC256SHA384,AuthHMAC384SHA512,AuthMD5,AuthSHA,AuthSHA2,Priv3DES,PrivacyGeneric,PrivAES,PrivAES128,PrivAES192,PrivAES192With3DESKeyExtension,PrivAES256,PrivAES256With3DESKeyExtension,PrivAESWith3DESKeyExtension,PrivDES
public interface SecurityProtocol extends java.io.SerializableTheSecurityProtocolclass defines common methods of authentication and privacy protocols.- Version:
- 2.6.0
- Author:
- Frank Fock, Jochen Katz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OIDgetID()Gets the OID uniquely identifying the privacy protocol.intgetMaxKeyLength()Get the maximum length of the key in bytes for this security protocol.booleanisSupported()Checks whether this security protocol is actually supported by this Java runtime environment.
-
-
-
Method Detail
-
getID
OID getID()
Gets the OID uniquely identifying the privacy protocol.- Returns:
- an
OIDinstance.
-
isSupported
boolean isSupported()
Checks whether this security protocol is actually supported by this Java runtime environment.- Returns:
trueif this security protocol is supported,falseotherwise.- Since:
- 2.5.0
-
getMaxKeyLength
int getMaxKeyLength()
Get the maximum length of the key in bytes for this security protocol.- Returns:
- the (maximum) length of the security protocols key.
- Since:
- 2.6.0
-
-