クラス Webauthn4JRelyingPartyOperations
java.lang.ObjectSE
org.springframework.security.web.webauthn.management.Webauthn4JRelyingPartyOperations
- 実装されているすべてのインターフェース:
WebAuthnRelyingPartyOperations
public class Webauthn4JRelyingPartyOperations
extends ObjectSE
implements WebAuthnRelyingPartyOperations
- 導入:
- 6.4
コンストラクターの概要
コンストラクターコンストラクター説明Webauthn4JRelyingPartyOperations
(PublicKeyCredentialUserEntityRepository userEntities, UserCredentialRepository userCredentials, PublicKeyCredentialRpEntity rpEntity, SetSE<StringSE> allowedOrigins) 新しいインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明渡されたRelyingPartyAuthenticationRequest
を認証するユーザーの認証に使用するPublicKeyCredentialRequestOptions
を作成します。新しい資格情報を登録するために使用されるPublicKeyCredentialCreationOptions
を作成します。registerCredential
(RelyingPartyRegistrationRequest rpRegistrationRequest) void
setCustomizeCreationOptions
(ConsumerSE<PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder> customizeCreationOptions) void
setCustomizeRequestOptions
(ConsumerSE<PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder> customizeRequestOptions) createCredentialRequestOptions(PublicKeyCredentialRequestOptionsRequest)
のPublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder
をカスタマイズするために使用されるConsumer
SE を設定します。デフォルト値は常に設定されますが、このプロパティで上書きできます。void
setWebAuthnManager
(com.webauthn4j.WebAuthnManager webAuthnManager) 使用するWebAuthnManager
を設定します。
コンストラクターの詳細
Webauthn4JRelyingPartyOperations
public Webauthn4JRelyingPartyOperations(PublicKeyCredentialUserEntityRepository userEntities, UserCredentialRepository userCredentials, PublicKeyCredentialRpEntity rpEntity, SetSE<StringSE> allowedOrigins) 新しいインスタンスを作成します。- パラメーター:
userEntities
- 使用するPublicKeyCredentialUserEntityRepository
。userCredentials
- 使用するUserCredentialRepository
。rpEntity
- 使用するPublicKeyCredentialRpEntity
。allowedOrigins
- 許可された起源。
メソッドの詳細
setWebAuthnManager
public void setWebAuthnManager(com.webauthn4j.WebAuthnManager webAuthnManager) 使用するWebAuthnManager
を設定します。デフォルトはWebAuthnManager.createNonStrictWebAuthnManager()
です- パラメーター:
webAuthnManager
-WebAuthnManager
setCustomizeCreationOptions
public void setCustomizeCreationOptions(ConsumerSE<PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder> customizeCreationOptions) createPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsRequest)
のPublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder
をカスタマイズするために使用されるConsumer
SE を設定します。デフォルト値は常に設定されますが、このプロパティで上書きできます。- パラメーター:
customizeCreationOptions
-Consumer
SE をカスタマイズしてPublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder
をカスタマイズする
setCustomizeRequestOptions
public void setCustomizeRequestOptions(ConsumerSE<PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder> customizeRequestOptions) createCredentialRequestOptions(PublicKeyCredentialRequestOptionsRequest)
のPublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder
をカスタマイズするために使用されるConsumer
SE を設定します。デフォルト値は常に設定されますが、このプロパティで上書きできます。- パラメーター:
customizeRequestOptions
-Consumer
SE をカスタマイズしてPublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder
をカスタマイズする
createPublicKeyCredentialCreationOptions
public PublicKeyCredentialCreationOptions createPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsRequest request) インターフェースからコピーされた説明:WebAuthnRelyingPartyOperations
新しい資格情報を登録するために使用されるPublicKeyCredentialCreationOptions
を作成します。- 次で指定:
- インターフェース
WebAuthnRelyingPartyOperations
のcreatePublicKeyCredentialCreationOptions
- パラメーター:
request
-PublicKeyCredentialCreationOptionsRequest
からPublicKeyCredentialCreationOptions
を作成する- 戻り値:
- 渡された
Authentication
のPublicKeyCredentialCreationOptions
。null にすることはできません。
registerCredential
インターフェースからコピーされた説明:WebAuthnRelyingPartyOperations
- 次で指定:
- インターフェース
WebAuthnRelyingPartyOperations
のregisterCredential
- パラメーター:
rpRegistrationRequest
- 処理するRelyingPartyRegistrationRequest
。- 戻り値:
- 新しい
CredentialRecord
createCredentialRequestOptions
public PublicKeyCredentialRequestOptions createCredentialRequestOptions(PublicKeyCredentialRequestOptionsRequest request) インターフェースからコピーされた説明:WebAuthnRelyingPartyOperations
ユーザーの認証に使用するPublicKeyCredentialRequestOptions
を作成します。- 次で指定:
- インターフェース
WebAuthnRelyingPartyOperations
のcreateCredentialRequestOptions
- パラメーター:
request
-PublicKeyCredentialRequestOptionsRequest
- 戻り値:
- ユーザーの認証に使用される
PublicKeyCredentialRequestOptions
。
authenticate
インターフェースからコピーされた説明:WebAuthnRelyingPartyOperations
渡されたRelyingPartyAuthenticationRequest
を認証する- 次で指定:
- インターフェース
WebAuthnRelyingPartyOperations
のauthenticate
- パラメーター:
request
-RelyingPartyAuthenticationRequest
- 戻り値:
- 認証が成功した場合のプリンシパル名(例: ユーザー名)