public class KeyToken extends Token
Yellow (cxh) |
Yellow (cxh) |
Modifier and Type | Class and Description |
---|---|
static class |
KeyToken.KeyType
The cryptographic key type.
|
Modifier and Type | Field and Description |
---|---|
static Type |
KEY
The Key type: the least upper bound of all the cryptographic
key types.
|
Constructor and Description |
---|
KeyToken(java.security.Key value)
Construct a token with a specified java.security.Key.
|
Modifier and Type | Method and Description |
---|---|
Type |
getType()
Return the type of this token.
|
java.security.Key |
getValue()
Return the java.security.Key.
|
BooleanToken |
isEqualTo(Token rightArgument)
Test for equality of the values of this Token and the argument
Token.
|
java.lang.String |
toString()
Return a String representation of the KeyToken.
|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public static final Type KEY
public KeyToken(java.security.Key value)
value
- The specified java.security.Key type to construct
the token with.public Type getType()
public java.security.Key getValue()
public final BooleanToken isEqualTo(Token rightArgument) throws IllegalActionException
isEqualTo
in class Token
rightArgument
- The Token to test against.IllegalActionException
- Not thrown in this base class.