Class ImmutablePublicKeyCose
java.lang.Object
org.springframework.security.web.webauthn.api.ImmutablePublicKeyCose
- All Implemented Interfaces:
PublicKeyCose
An immutable
PublicKeyCose
- Since:
- 6.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutablePublicKeyCose
fromBase64
(String base64EncodedString) Creates a new instance form a Base64 URL encoded Stringbyte[]
getBytes()
The byes of a COSE encoded public key.
-
Constructor Details
-
ImmutablePublicKeyCose
public ImmutablePublicKeyCose(byte[] bytes) Creates a new instance.- Parameters:
bytes
- the raw bytes of the public key.
-
-
Method Details
-
getBytes
public byte[] getBytes()Description copied from interface:PublicKeyCose
The byes of a COSE encoded public key.- Specified by:
getBytes
in interfacePublicKeyCose
- Returns:
- the bytes of a COSE encoded public key.
-
fromBase64
Creates a new instance form a Base64 URL encoded String- Parameters:
base64EncodedString
- the base64EncodedString encoded String- Returns:
-