public class P11PrivateKey extends Object implements PrivateKey
| Constructor and Description |
|---|
P11PrivateKey(P11CryptService p11CryptService,
P11IdentityId identityId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
byte[] |
getEncoded() |
String |
getFormat() |
P11IdentityId |
getIdentityId() |
int |
getKeysize() |
P11CryptService |
getP11CryptService() |
PublicKey |
getPublicKey() |
byte[] |
sign(long mechanism,
P11Params parameters,
byte[] content)
Signs the content.
|
boolean |
supportsMechanism(long mechanism) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedpublic P11PrivateKey(P11CryptService p11CryptService, P11IdentityId identityId) throws P11TokenException
P11TokenExceptionpublic boolean supportsMechanism(long mechanism)
public byte[] getEncoded()
getEncoded in interface Keypublic String getAlgorithm()
getAlgorithm in interface Keypublic int getKeysize()
public PublicKey getPublicKey()
public byte[] sign(long mechanism,
P11Params parameters,
byte[] content)
throws org.xipki.security.exception.XiSecurityException,
P11TokenException
mechanism - the mechanismparameters - the parameters. Could be null.content - the content to be signed.org.xipki.security.exception.XiSecurityException - if security error happensP11TokenException - if token error happens.public P11CryptService getP11CryptService()
public P11IdentityId getIdentityId()
Copyright © 2018. All rights reserved.