public class RSACOSEKey extends AbstractCOSEKey
| Constructor and Description |
|---|
RSACOSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
byte[] n,
byte[] e)
Constructor for public key
|
RSACOSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
byte[] n,
byte[] e,
byte[] d,
byte[] p,
byte[] q,
byte[] dP,
byte[] dQ,
byte[] qInv)
Constructor for key pair
|
| Modifier and Type | Method and Description |
|---|---|
static RSACOSEKey |
create(java.security.interfaces.RSAPublicKey publicKey) |
boolean |
equals(java.lang.Object o) |
byte[] |
getD() |
byte[] |
getDP() |
byte[] |
getDQ() |
byte[] |
getE() |
COSEKeyType |
getKeyType() |
byte[] |
getN() |
byte[] |
getP() |
java.security.PrivateKey |
getPrivateKey() |
java.security.PublicKey |
getPublicKey() |
byte[] |
getQ() |
byte[] |
getQInv() |
int |
hashCode() |
boolean |
hasPrivateKey() |
boolean |
hasPublicKey() |
void |
validate() |
getAlgorithm, getBaseIV, getKeyId, getKeyOpspublic RSACOSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
byte[] n,
byte[] e,
byte[] d,
byte[] p,
byte[] q,
byte[] dP,
byte[] dQ,
byte[] qInv)
keyId - keyIdalgorithm - algorithmkeyOps - keyOpsn - the RSA modulus ne - the RSA public exponent ed - the RSA private exponent dp - the prime factor p of nq - the prime factor q of ndP - dP is d mod (p - 1)dQ - dQ is d mod (q - 1)qInv - qInv is the CRT coefficient q^(-1) mod ppublic RSACOSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
byte[] n,
byte[] e)
keyId - keyIdalgorithm - algorithmkeyOps - keyOpsn - ne - epublic static RSACOSEKey create(java.security.interfaces.RSAPublicKey publicKey)
public COSEKeyType getKeyType()
getKeyType in interface COSEKeygetKeyType in class AbstractCOSEKeypublic byte[] getN()
public byte[] getE()
public byte[] getD()
public byte[] getP()
public byte[] getQ()
public byte[] getDP()
public byte[] getDQ()
public byte[] getQInv()
public boolean hasPublicKey()
public boolean hasPrivateKey()
public java.security.PublicKey getPublicKey()
public java.security.PrivateKey getPrivateKey()
public void validate()
public boolean equals(java.lang.Object o)
equals in class AbstractCOSEKeypublic int hashCode()
hashCode in class AbstractCOSEKey