mitreid-connect
公開メンバ関数 | 全メンバ一覧
org.mitre.jwt.signer.service.JWTSigningAndValidationService インタフェース
org.mitre.jwt.signer.service.JWTSigningAndValidationService の継承関係図
Inheritance graph
org.mitre.jwt.signer.service.JWTSigningAndValidationService 連携図
Collaboration graph

公開メンバ関数

Map< String, JWK > getAllPublicKeys ()
 
boolean validateSignature (SignedJWT jwtString)
 
void signJwt (SignedJWT jwt)
 
JWSAlgorithm getDefaultSigningAlgorithm ()
 
Collection< JWSAlgorithm > getAllSigningAlgsSupported ()
 
void signJwt (SignedJWT jwt, JWSAlgorithm alg)
 
String getDefaultSignerKeyId ()
 

詳解

関数詳解

◆ getAllPublicKeys()

Map<String, JWK> org.mitre.jwt.signer.service.JWTSigningAndValidationService.getAllPublicKeys ( )

Get all public keys for this service, mapped by their Key ID

org.mitre.jwt.signer.service.impl.DefaultJWTSigningAndValidationServiceで実装されています。

◆ getAllSigningAlgsSupported()

Collection<JWSAlgorithm> org.mitre.jwt.signer.service.JWTSigningAndValidationService.getAllSigningAlgsSupported ( )

Get the list of all signing algorithms supported by this service.

戻り値

org.mitre.jwt.signer.service.impl.DefaultJWTSigningAndValidationServiceで実装されています。

◆ getDefaultSignerKeyId()

String org.mitre.jwt.signer.service.JWTSigningAndValidationService.getDefaultSignerKeyId ( )

◆ getDefaultSigningAlgorithm()

JWSAlgorithm org.mitre.jwt.signer.service.JWTSigningAndValidationService.getDefaultSigningAlgorithm ( )

Get the default signing algorithm for use when nothing else has been specified.

戻り値

org.mitre.jwt.signer.service.impl.DefaultJWTSigningAndValidationServiceで実装されています。

◆ signJwt() [1/2]

void org.mitre.jwt.signer.service.JWTSigningAndValidationService.signJwt ( SignedJWT  jwt)

Called to sign a jwt in place for a client that hasn't registered a preferred signing algorithm. Use the default algorithm to sign.

引数
jwtthe jwt to sign
戻り値
the signed jwt
例外
NoSuchAlgorithmException

org.mitre.jwt.signer.service.impl.DefaultJWTSigningAndValidationServiceで実装されています。

◆ signJwt() [2/2]

void org.mitre.jwt.signer.service.JWTSigningAndValidationService.signJwt ( SignedJWT  jwt,
JWSAlgorithm  alg 
)

Sign a jwt using the selected algorithm. The algorithm is selected using the String parameter values specified in the JWT spec, section 6. I.E., "HS256" means HMAC with SHA-256 and corresponds to our HmacSigner class.

引数
jwtthe jwt to sign
algthe name of the algorithm to use, as specified in JWS s.6
戻り値
the signed jwt

org.mitre.jwt.signer.service.impl.DefaultJWTSigningAndValidationServiceで実装されています。

◆ validateSignature()

boolean org.mitre.jwt.signer.service.JWTSigningAndValidationService.validateSignature ( SignedJWT  jwtString)

Checks the signature of the given JWT against all configured signers, returns true if at least one of the signers validates it.

引数
jwtStringthe string representation of the JWT as sent on the wire
戻り値
true if the signature is valid, false if not
例外
NoSuchAlgorithmException

org.mitre.jwt.signer.service.impl.DefaultJWTSigningAndValidationServiceで実装されています。


このインタフェース詳解は次のファイルから抽出されました: