|
16 | 16 |
|
17 | 17 | package org.springframework.security.saml2.provider.service.registration;
|
18 | 18 |
|
| 19 | +import java.util.Collection; |
| 20 | +import java.util.List; |
| 21 | +import java.util.function.Consumer; |
| 22 | + |
19 | 23 | import org.opensaml.saml.saml2.metadata.EntityDescriptor;
|
20 | 24 |
|
| 25 | +import org.springframework.security.saml2.core.Saml2X509Credential; |
| 26 | + |
21 | 27 | /**
|
22 | 28 | * A {@link RelyingPartyRegistration.AssertingPartyDetails} that contains
|
23 | 29 | * OpenSAML-specific members
|
@@ -66,12 +72,92 @@ public static OpenSamlAssertingPartyDetails.Builder withEntityDescriptor(EntityD
|
66 | 72 | */
|
67 | 73 | public static final class Builder extends RelyingPartyRegistration.AssertingPartyDetails.Builder {
|
68 | 74 |
|
69 |
| - private final EntityDescriptor descriptor; |
| 75 | + private EntityDescriptor descriptor; |
70 | 76 |
|
71 | 77 | private Builder(EntityDescriptor descriptor) {
|
72 | 78 | this.descriptor = descriptor;
|
73 | 79 | }
|
74 | 80 |
|
| 81 | + /** |
| 82 | + * {@inheritDoc} |
| 83 | + */ |
| 84 | + @Override |
| 85 | + public Builder entityId(String entityId) { |
| 86 | + return (Builder) super.entityId(entityId); |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * {@inheritDoc} |
| 91 | + */ |
| 92 | + @Override |
| 93 | + public Builder wantAuthnRequestsSigned(boolean wantAuthnRequestsSigned) { |
| 94 | + return (Builder) super.wantAuthnRequestsSigned(wantAuthnRequestsSigned); |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * {@inheritDoc} |
| 99 | + */ |
| 100 | + @Override |
| 101 | + public Builder signingAlgorithms(Consumer<List<String>> signingMethodAlgorithmsConsumer) { |
| 102 | + return (Builder) super.signingAlgorithms(signingMethodAlgorithmsConsumer); |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * {@inheritDoc} |
| 107 | + */ |
| 108 | + @Override |
| 109 | + public Builder verificationX509Credentials(Consumer<Collection<Saml2X509Credential>> credentialsConsumer) { |
| 110 | + return (Builder) super.verificationX509Credentials(credentialsConsumer); |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * {@inheritDoc} |
| 115 | + */ |
| 116 | + @Override |
| 117 | + public Builder encryptionX509Credentials(Consumer<Collection<Saml2X509Credential>> credentialsConsumer) { |
| 118 | + return (Builder) super.encryptionX509Credentials(credentialsConsumer); |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * {@inheritDoc} |
| 123 | + */ |
| 124 | + @Override |
| 125 | + public Builder singleSignOnServiceLocation(String singleSignOnServiceLocation) { |
| 126 | + return (Builder) super.singleSignOnServiceLocation(singleSignOnServiceLocation); |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * {@inheritDoc} |
| 131 | + */ |
| 132 | + @Override |
| 133 | + public Builder singleSignOnServiceBinding(Saml2MessageBinding singleSignOnServiceBinding) { |
| 134 | + return (Builder) super.singleSignOnServiceBinding(singleSignOnServiceBinding); |
| 135 | + } |
| 136 | + |
| 137 | + /** |
| 138 | + * {@inheritDoc} |
| 139 | + */ |
| 140 | + @Override |
| 141 | + public Builder singleLogoutServiceLocation(String singleLogoutServiceLocation) { |
| 142 | + return (Builder) super.singleLogoutServiceLocation(singleLogoutServiceLocation); |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * {@inheritDoc} |
| 147 | + */ |
| 148 | + @Override |
| 149 | + public Builder singleLogoutServiceResponseLocation(String singleLogoutServiceResponseLocation) { |
| 150 | + return (Builder) super.singleLogoutServiceResponseLocation(singleLogoutServiceResponseLocation); |
| 151 | + } |
| 152 | + |
| 153 | + /** |
| 154 | + * {@inheritDoc} |
| 155 | + */ |
| 156 | + @Override |
| 157 | + public Builder singleLogoutServiceBinding(Saml2MessageBinding singleLogoutServiceBinding) { |
| 158 | + return (Builder) super.singleLogoutServiceBinding(singleLogoutServiceBinding); |
| 159 | + } |
| 160 | + |
75 | 161 | /**
|
76 | 162 | * Build an
|
77 | 163 | * {@link org.springframework.security.saml2.provider.service.registration.OpenSamlAssertingPartyDetails}
|
|
0 commit comments