public class AnnotatedPrivateKey extends Object implements PrivateKey
Modifier and Type | Field and Description |
---|---|
static String |
LABEL |
serialVersionUID
Modifier and Type | Method and Description |
---|---|
AnnotatedPrivateKey |
addAnnotation(String name,
Object annotation)
Return a new annotated key with an additional annotation added to it.
|
boolean |
equals(Object o) |
String |
getAlgorithm() |
Object |
getAnnotation(String key) |
Map<String,Object> |
getAnnotations() |
byte[] |
getEncoded() |
String |
getFormat() |
PrivateKey |
getKey() |
int |
hashCode() |
AnnotatedPrivateKey |
removeAnnotation(String name)
Return a new annotated key with the named annotation removed.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
public static final String LABEL
public PrivateKey getKey()
public String getAlgorithm()
getAlgorithm
in interface Key
public AnnotatedPrivateKey addAnnotation(String name, Object annotation)
name
- the name of the annotation to add.annotation
- the object providing the annotation details.public AnnotatedPrivateKey removeAnnotation(String name)
name
- the name of the annotation to remove.public byte[] getEncoded()
getEncoded
in interface Key
Copyright © 2020 BouncyCastle.org. All rights reserved.