Class SamlIdentityProvider
java.lang.Object
com.revetsec.saml.SamlIdentityProvider
An immutable application-approved IdP connection. The required connection ID is the application's
account and replay namespace; the self-asserted SAML entity ID cannot replace it. Metadata parsing
never automatically approves a connection.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfigures one trusted IdP connection. -
Method Summary
Modifier and TypeMethodDescriptionReturns this value.Returns this value.toString()Redacts connection and trust details.withEntityId(@NonNull String entityId) Starts manual trust configuration for one IdP.withMetadata(@NonNull SamlIdentityProviderMetadata metadata) Prefills a builder from application-approved metadata.
-
Method Details
-
withEntityId
Starts manual trust configuration for one IdP.- Parameters:
entityId- nonempty exact IdP entity ID, well-formed text of at most 2048 UTF-16 code units- Returns:
- a builder
- Since:
- 1.0.0
-
withMetadata
public static @NonNull SamlIdentityProvider.Builder withMetadata(@NonNull SamlIdentityProviderMetadata metadata) Prefills a builder from application-approved metadata. The application must assign a connection ID and decide whether to trust the supplied metadata source.- Parameters:
metadata- selected IdP metadata- Returns:
- a builder requiring a connection ID
- Since:
- 1.0.0
-
getConnectionId
Returns this value.- Returns:
- the application-assigned connection ID
- Since:
- 1.0.0
-
getEntityId
Returns this value.- Returns:
- the IdP's exact entity ID
- Since:
- 1.0.0
-
toString
-