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 |
activeKeyId(String activeKeyId)
Initializes the value for the
activeKeyId attribute. |
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 |
disableInResponseToCheck(Boolean disableInResponseToCheck)
Initializes the value for the
disableInResponseToCheck attribute. |
SamlConfiguration.Builder |
entityId(String entityId)
Initializes the value for the
entityId attribute. |
SamlConfiguration.Builder |
from(SamlConfiguration instance)
Fill a builder with attribute values from the provided
SamlConfiguration instance. |
SamlConfiguration.Builder |
key(Map.Entry<String,? extends Key> entry)
Put one entry to the
keys map. |
SamlConfiguration.Builder |
key(String key,
Key value)
Put one entry to the
keys map. |
SamlConfiguration.Builder |
keys(Map<String,? extends Key> entries)
Sets or replaces all mappings from the specified map as entries for the
keys map. |
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 |
putAllKeys(Map<String,? extends Key> entries)
Put all mappings from the specified map as entries to
keys map. |
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.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SamlConfiguration.Builder activeKeyId(String activeKeyId)
activeKeyId attribute.activeKeyId - The value for activeKeyId (can be null)this 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 disableInResponseToCheck(Boolean disableInResponseToCheck)
disableInResponseToCheck attribute.disableInResponseToCheck - The value for disableInResponseToCheck (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder entityId(String entityId)
entityId attribute.entityId - The value for entityId (can be null)this builder for use in a chained invocationpublic final SamlConfiguration.Builder key(String key, Key value)
keys map.key - The key in the keys mapvalue - The associated value in the keys mapthis builder for use in a chained invocationpublic final SamlConfiguration.Builder key(Map.Entry<String,? extends Key> entry)
keys map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final SamlConfiguration.Builder keys(Map<String,? extends Key> entries)
keys map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the keys mapthis builder for use in a chained invocationpublic final SamlConfiguration.Builder putAllKeys(Map<String,? extends Key> entries)
keys map. Nulls are not permittedentries - The entries that will be added to the keys mapthis 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 © 2020. All rights reserved.