public abstract class AbstractIndexedKey<T extends Key> extends Object implements IndexedKey
IndexedKey that also includes an instance of a Key.serialVersionUID| Constructor and Description |
|---|
AbstractIndexedKey(T key,
int index,
boolean active,
KeyType type)
Create the AbstractIndexedKey with the given key, index, active state and keyType
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks for equality of objects (checking type and member values).
|
String |
getAlgorithm()
Get the algorithm of the key.
|
byte[] |
getEncoded()
Get the encoded bytes of the key.
|
String |
getFormat()
Get the format of the key.
|
int |
getIndex()
Get the index of the key.
|
T |
getKey()
Get the underlying key.
|
KeyType |
getKeyType()
Get the type of the key.
|
boolean |
isActive()
Get the active state of the key.
|
void |
setActive(boolean active)
Set the active state of the key.
|
public AbstractIndexedKey(T key, int index, boolean active, KeyType type)
key - the actual keyindex - the index of the keyactive - the active state of the keytype - the type of the keypublic boolean equals(Object obj)
public String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
getEncoded in interface Keypublic String getFormat()
public int getIndex()
getIndex in interface IndexedKeypublic T getKey()
public KeyType getKeyType()
getKeyType in interface IndexedKeypublic boolean isActive()
isActive in interface IndexedKeypublic void setActive(boolean active)
setActive in interface IndexedKeyactive - the active state of the keyCopyright © 2021. All rights reserved.