java.lang.Object
com.irurueta.authserver.authorization.api.web.x509.X509Factor

@Configuration(proxyBeanMethods=false) @ConditionalOnProperty(prefix="authserver.x509", name="enabled", havingValue="true") @EnableConfigurationProperties(X509Properties.class) public class X509Factor extends Object
Registers the client certificate as an authentication factor: a strong primary one, because the holder proves possession of the private key during the TLS handshake (or the proxy did on the server's behalf), so a certificate satisfies the multi-factor policy on its own. It reports sc (a smart card) by default, or hwk when the deployment says its certificates are bound to hardware. It exists only while the sign-in with a certificate is enabled, so the registry of an ordinary deployment is unchanged.
  • Field Details

  • Constructor Details

    • X509Factor

      public X509Factor()
  • Method Details

    • x509AuthenticationFactor

      @Bean public AuthenticationFactor x509AuthenticationFactor(X509Properties properties)
      Declares the certificate factor.
      Parameters:
      properties - settings of the sign-in with a certificate, which choose the reported amr value.
      Returns:
      the factor.