Package net.jsign.jca
Class SigningServicePrivateKey
- java.lang.Object
-
- net.jsign.jca.SigningServicePrivateKey
-
- All Implemented Interfaces:
Serializable,Key,PrivateKey,Destroyable
public class SigningServicePrivateKey extends Object implements PrivateKey
Reference to a private key held by the signing service.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.PrivateKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description SigningServicePrivateKey(String id, String algorithm)Creates a new reference to a privaye key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()byte[]getEncoded()StringgetFormat()StringgetId()Map<String,Object>getProperties()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Constructor Detail
-
SigningServicePrivateKey
public SigningServicePrivateKey(String id, String algorithm)
Creates a new reference to a privaye key.- Parameters:
id- The identifier of the keyalgorithm- The algorithm of the key (RSA or ECDSA)
-
-
Method Detail
-
getProperties
public Map<String,Object> getProperties()
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithmin interfaceKey
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfaceKey
-
-