org.bouncycastle.jcajce.provider.asymmetric.xwing
Class BCXWingPublicKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.xwing.BCXWingPublicKey
- All Implemented Interfaces:
- java.security.Key, java.security.PublicKey, java.io.Serializable, XWingKey, XWingPublicKey
- public class BCXWingPublicKey
- extends java.lang.Object
- implements XWingPublicKey
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BCXWingPublicKey
public BCXWingPublicKey(XWingPublicKeyParameters params)
BCXWingPublicKey
public BCXWingPublicKey(SubjectPublicKeyInfo keyInfo)
throws java.io.IOException
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
getAlgorithm
public final java.lang.String getAlgorithm()
- Specified by:
getAlgorithm in interface java.security.Key
- Returns:
- name of the algorithm - "X-WING".
getPublicData
public byte[] getPublicData()
- Description copied from interface:
XWingPublicKey
- Return the raw encoded data representing the public key (ML-KEM-768 encapsulation key || X25519 public key).
- Specified by:
getPublicData in interface XWingPublicKey
- Returns:
- the raw 1216 byte public key data.
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded in interface java.security.Key
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat in interface java.security.Key
toString
public java.lang.String toString()