Package com.ibm.websphere.security.jwt
Interface Builder
public interface Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuildJwt()create()encryptWith(String keyManagementAlg, Key keyManagementKey, String contentEncryptionAlg) expirationTime(long exp) jwtId(boolean create) notBefore(long time_from)
-
Method Details
-
create
- Throws:
InvalidBuilderException
-
create
- Throws:
InvalidBuilderException
-
issuer
- Throws:
InvalidClaimException
-
audience
- Throws:
InvalidClaimException
-
expirationTime
- Throws:
InvalidClaimException
-
jwtId
-
notBefore
- Throws:
InvalidClaimException
-
subject
- Throws:
InvalidClaimException
-
signWith
- Throws:
KeyException
-
signWith
- Throws:
KeyException
-
encryptWith
Builder encryptWith(String keyManagementAlg, Key keyManagementKey, String contentEncryptionAlg) throws KeyException - Throws:
KeyException
-
claim
- Throws:
InvalidClaimException
-
claim
- Throws:
InvalidClaimException
-
fetch
- Throws:
InvalidClaimException
-
remove
- Throws:
InvalidClaimException
-
claimFrom
Builder claimFrom(String jsonOrJwt, String claim) throws InvalidClaimException, InvalidTokenException -
claimFrom
- Throws:
InvalidTokenException
-
claimFrom
Builder claimFrom(JwtToken jwt, String claimName) throws InvalidClaimException, InvalidTokenException -
claimFrom
- Throws:
InvalidTokenException
-
buildJwt
- Throws:
JwtExceptionInvalidBuilderException
-