Package org.forgerock.openig.fapi.dcr
Class SoftwareStatement
java.lang.Object
org.forgerock.openig.fapi.dcr.SoftwareStatement
This class represents an OAuth2.0 Software Statement.
A Software Statement is a signed JWT containing metadata about the software being registered. See RFC 7591 Section 2.3 for more information.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SoftwareStatement.Builder
builder()
Create a newSoftwareStatement.Builder
to buildSoftwareStatement
objects.<T> T
Retrieve a value for a claim from the software statement, this allows custom claims to be retrieved i.e.Get the client name.Get the issuer name of the Trusted Directory that issued the software statement.Get the JWKSet locator.Get the organisation ID.Get the organisation name.Get the redirect URIs.getRoles()
Get the roles that this software is allowed to perform.Get the software ID.Get the software statement assertion.
-
Method Details
-
builder
Create a newSoftwareStatement.Builder
to buildSoftwareStatement
objects.- Returns:
- the Builder
-
getIssuer
Get the issuer name of the Trusted Directory that issued the software statement.- Returns:
- the issuer name
-
getOrganisationId
Get the organisation ID.- Returns:
- the organisation ID
-
getOrganisationName
Get the organisation name.- Returns:
- the organisation name
-
getSoftwareId
Get the software ID.- Returns:
- the software ID
-
getClientName
Get the client name.- Returns:
- the client name
-
getSoftwareStatementAssertion
Get the software statement assertion. TheSignedJwt
used to create this object.- Returns:
- the software statement assertion
-
getRoles
Get the roles that this software is allowed to perform. Optional, returns an empty list of no roles associated.- Returns:
- the roles
-
getJwkSetLocator
Get the JWKSet locator. This represents where theJWKSet
for this software can be found. This is either via URI or as a JWKSet embedded in the software statement. -
getRedirectUris
Get the redirect URIs. These are a collection of URIs that an OAuth2.0 client registering with this software statement is allowed to request to be redirected to.- Returns:
- the redirect URIs as a list of URIs
-
getClaim
Retrieve a value for a claim from the software statement, this allows custom claims to be retrieved i.e. one that does not have a dedicated getter.- Type Parameters:
T
- the type of the claim's value- Parameters:
claimName
- the name of the claim to retrieveclazz
- the expected class of the claim's value- Returns:
- the value stored for the claimName cast as type T
-