public class EC2COSEKey extends AbstractCOSEKey implements java.io.Serializable
| Constructor and Description |
|---|
EC2COSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
Curve curve,
byte[] d)
Constructor for public key
|
EC2COSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
Curve curve,
byte[] x,
byte[] y)
Constructor for public key
|
EC2COSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
Curve curve,
byte[] x,
byte[] y,
byte[] d)
Constructor for key pair
|
| Modifier and Type | Method and Description |
|---|---|
static EC2COSEKey |
createFromUncompressedECCKey(byte[] publicKey)
create from uncompressed ECC 256-bit key
|
boolean |
equals(java.lang.Object o) |
Curve |
getCurve() |
byte[] |
getD() |
COSEKeyType |
getKeyType() |
java.security.PrivateKey |
getPrivateKey() |
java.security.PublicKey |
getPublicKey() |
byte[] |
getX() |
byte[] |
getY() |
int |
hashCode() |
boolean |
hasPrivateKey() |
boolean |
hasPublicKey() |
void |
validate() |
getAlgorithm, getBaseIV, getKeyId, getKeyOpspublic EC2COSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
Curve curve,
byte[] x,
byte[] y,
byte[] d)
keyId - keyIdalgorithm - algorithmkeyOps - keyOpscurve - curvex - xy - yd - dpublic EC2COSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
Curve curve,
byte[] x,
byte[] y)
keyId - keyIdalgorithm - algorithmkeyOps - keyOpscurve - curvex - xy - ypublic EC2COSEKey(byte[] keyId,
COSEAlgorithmIdentifier algorithm,
java.util.List<COSEKeyOperation> keyOps,
Curve curve,
byte[] d)
keyId - keyIdalgorithm - algorithmkeyOps - keyOpscurve - curved - dpublic static EC2COSEKey createFromUncompressedECCKey(byte[] publicKey)
publicKey - publicKeyEC2COSEKeypublic COSEKeyType getKeyType()
getKeyType in interface COSEKeygetKeyType in class AbstractCOSEKeypublic Curve getCurve()
public byte[] getX()
public byte[] getY()
public byte[] getD()
public java.security.PublicKey getPublicKey()
getPublicKey in interface COSEKeypublic java.security.PrivateKey getPrivateKey()
getPrivateKey in interface COSEKeypublic boolean hasPublicKey()
hasPublicKey in interface COSEKeypublic boolean hasPrivateKey()
hasPrivateKey in interface COSEKeypublic boolean equals(java.lang.Object o)
equals in class AbstractCOSEKeypublic int hashCode()
hashCode in class AbstractCOSEKey