public static final class SamlConfiguration.Builder extends Object
SamlConfiguration.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
SamlConfiguration.Builder |
assertionSigned(Boolean assertionSigned)
Initializes the value for the
assertionSigned attribute. |
SamlConfiguration.Builder |
assertionTimeToLive(Integer assertionTimeToLive)
Initializes the value for the
assertionTimeToLive attribute. |
SamlConfiguration |
build()
Builds a new
SamlConfiguration. |
SamlConfiguration.Builder |
certificate(String certificate)
Initializes the value for the
certificate attribute. |
SamlConfiguration.Builder |
from(SamlConfiguration instance)
Fill a builder with attribute values from the provided
SamlConfiguration instance. |
SamlConfiguration.Builder |
privateKey(String privateKey)
Initializes the value for the
privateKey attribute. |
SamlConfiguration.Builder |
privateKeyPassword(String privateKeyPassword)
Initializes the value for the
privateKeyPassword attribute. |
SamlConfiguration.Builder |
requestSigned(Boolean requestSigned)
Initializes the value for the
requestSigned attribute. |
SamlConfiguration.Builder |
wantAssertionSigned(Boolean wantAssertionSigned)
Initializes the value for the
wantAssertionSigned attribute. |
SamlConfiguration.Builder |
wantPartnerAuthenticationRequestSigned(Boolean wantPartnerAuthenticationRequestSigned)
Initializes the value for the
wantPartnerAuthenticationRequestSigned attribute. |
public final SamlConfiguration.Builder from(SamlConfiguration instance)
SamlConfiguration instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SamlConfiguration.Builder assertionSigned(Boolean assertionSigned)
assertionSigned attribute.assertionSigned - The value for assertionSigned (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder assertionTimeToLive(Integer assertionTimeToLive)
assertionTimeToLive attribute.assertionTimeToLive - The value for assertionTimeToLive (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder certificate(String certificate)
certificate attribute.certificate - The value for certificate (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder privateKey(String privateKey)
privateKey attribute.privateKey - The value for privateKey (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder privateKeyPassword(String privateKeyPassword)
privateKeyPassword attribute.privateKeyPassword - The value for privateKeyPassword (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder requestSigned(Boolean requestSigned)
requestSigned attribute.requestSigned - The value for requestSigned (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder wantAssertionSigned(Boolean wantAssertionSigned)
wantAssertionSigned attribute.wantAssertionSigned - The value for wantAssertionSigned (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder wantPartnerAuthenticationRequestSigned(Boolean wantPartnerAuthenticationRequestSigned)
wantPartnerAuthenticationRequestSigned attribute.wantPartnerAuthenticationRequestSigned - The value for wantPartnerAuthenticationRequestSigned (can be null)this builder for use in a chained invocationpublic SamlConfiguration build()
SamlConfiguration.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.