Package com.yubico.webauthn.data
Class RelyingPartyIdentity
- java.lang.Object
-
- com.yubico.webauthn.data.RelyingPartyIdentity
-
- All Implemented Interfaces:
PublicKeyCredentialEntity
public final class RelyingPartyIdentity extends java.lang.Object implements PublicKeyCredentialEntity
Used to supply additional Relying Party attributes when creating a new credential.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelyingPartyIdentity.RelyingPartyIdentityBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelyingPartyIdentity.RelyingPartyIdentityBuilder.MandatoryStagesbuilder()booleanequals(java.lang.Object o)java.util.Optional<java.net.URL>getIcon()A serialized URL which resolves to an image associated with the entity.@NonNull java.lang.StringgetId()A unique identifier for the Relying Party, which sets the RP ID.@NonNull java.lang.StringgetName()The human-palatable name of the Relaying Party.inthashCode()RelyingPartyIdentity.RelyingPartyIdentityBuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static RelyingPartyIdentity.RelyingPartyIdentityBuilder.MandatoryStages builder()
-
getIcon
public java.util.Optional<java.net.URL> getIcon()
Description copied from interface:PublicKeyCredentialEntityA serialized URL which resolves to an image associated with the entity.For example, this could be a user's avatar or a Relying Party's logo. This URL MUST be an a priori authenticated URL. Authenticators MUST accept and store a 128-byte minimum length for an icon member's value. Authenticators MAY ignore an icon member's value if its length is greater than 128 bytes. The URL's scheme MAY be "data" to avoid fetches of the URL, at the cost of needing more storage.
- Specified by:
getIconin interfacePublicKeyCredentialEntity
-
toBuilder
public RelyingPartyIdentity.RelyingPartyIdentityBuilder toBuilder()
-
getId
@NonNull public @NonNull java.lang.String getId()
A unique identifier for the Relying Party, which sets the RP ID.- See Also:
- RP ID
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
@NonNull public @NonNull java.lang.String getName()
The human-palatable name of the Relaying Party.For example: "ACME Corporation", "Wonderful Widgets, Inc." or "ОАО Примертех".
- Specified by:
getNamein interfacePublicKeyCredentialEntity- See Also:
- RFC 8264, RFC 8265
-
-