ExtendedMetadataConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { extendedMetadataBean = builder.getSharedObject(ExtendedMetadata.class); extendedMetadataConfig = builder.getSharedObject(SAMLSSOProperties.class).getExtendedMetadata(); } ExtendedMetadataConfigurer();  ExtendedMetadataConfigurer(ExtendedMetadata extendedMetadata); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder); @Deprecated ExtendedMetadataConfigurer local(Boolean local); ExtendedMetadataConfigurer idpDiscoveryEnabled(boolean idpDiscoveryEnabled); ExtendedMetadataConfigurer ecpEnabled(boolean ecpEnabled); ExtendedMetadataConfigurer signMetadata(boolean signMetadata); ExtendedMetadataConfigurer requireLogoutRequestSigned(boolean requireLogoutRequestSigned); ExtendedMetadataConfigurer requireLogoutResponseSigned(boolean requireLogoutResponseSigned); ExtendedMetadataConfigurer requireArtifactResolveSigned(boolean requireArtifactResolveSigned); ExtendedMetadataConfigurer supportUnsolicitedResponse(boolean supportUnsolicitedResponse); ExtendedMetadataConfigurer alias(String alias); ExtendedMetadataConfigurer idpDiscoveryURL(String idpDiscoveryURL); ExtendedMetadataConfigurer idpDiscoveryResponseURL(String idpDiscoveryResponseURL); ExtendedMetadataConfigurer securityProfile(String securityProfile); ExtendedMetadataConfigurer sslSecurityProfile(String sslSecurityProfile); ExtendedMetadataConfigurer sslHostnameVerification(String sslHostnameVerification); ExtendedMetadataConfigurer signingKey(String signingKey); ExtendedMetadataConfigurer signingAlgorithm(String signingAlgorithm); ExtendedMetadataConfigurer keyInfoGeneratorName(String keyInfoGeneratorName); ExtendedMetadataConfigurer encryptionKey(String encryptionKey); ExtendedMetadataConfigurer tlsKey(String tlsKey); ExtendedMetadataConfigurer trustedKeys(String... trustedKeys);  }
@Test public void init() throws Exception { ExtendedMetadataConfigurer configurer = new ExtendedMetadataConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(ExtendedMetadata.class)); verify(builder).getSharedObject(eq(SAMLSSOProperties.class)); }