Class SecurityImpl

  • All Implemented Interfaces:
    Serializable, Security, SecurityMetadata, org.jboss.jca.common.api.metadata.common.Security, org.jboss.jca.common.api.metadata.common.SecurityMetadata, org.jboss.jca.common.api.metadata.JCAMetadata, org.jboss.jca.common.api.metadata.ValidatableMetadata

    public class SecurityImpl
    extends org.jboss.jca.common.metadata.common.SecurityImpl
    implements Security
    Extension of SecurityImpl with added Elytron support.
    Author:
    Flavia Rainone
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.jboss.as.connector.metadata.api.common.Security

        Security.Tag
      • Nested classes/interfaces inherited from interface org.jboss.jca.common.api.metadata.common.Security

        org.jboss.jca.common.api.metadata.common.Security.Tag
    • Constructor Summary

      Constructors 
      Constructor Description
      SecurityImpl​(String securityDomain, String securityDomainAndApplication, boolean applicationManaged, boolean elytronEnabled)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)
      int hashCode()
      boolean isElytronEnabled()
      Indicates if Elytron is enabled.
      String toString()
      • Methods inherited from class org.jboss.jca.common.metadata.common.SecurityImpl

        getSecurityDomain, getSecurityDomainAndApplication, isApplication, resolveSecurityDomain, validate
      • Methods inherited from interface org.jboss.jca.common.api.metadata.common.Security

        getSecurityDomain, getSecurityDomainAndApplication, isApplication
      • Methods inherited from interface org.jboss.jca.common.api.metadata.common.SecurityMetadata

        resolveSecurityDomain
      • Methods inherited from interface org.jboss.jca.common.api.metadata.ValidatableMetadata

        validate
    • Constructor Detail

      • SecurityImpl

        public SecurityImpl​(String securityDomain,
                            String securityDomainAndApplication,
                            boolean applicationManaged,
                            boolean elytronEnabled)
                     throws org.jboss.jca.common.api.validator.ValidateException
        Constructor
        Parameters:
        securityDomain - security domain managed authentication. Security domain will refer to an Elytron authentication context
        securityDomainAndApplication - securityDomain and application managed authentication. This field will refer to an Elytron authentication context
        applicationManaged - application managed authentication
        elytronEnabled - Deprecated. Elytron is enabled by default and this field is ignored.
        Throws:
        org.jboss.jca.common.api.validator.ValidateException - ValidateException in case of a validation error
    • Method Detail

      • isElytronEnabled

        public boolean isElytronEnabled()
        Indicates if Elytron is enabled. In this case, SecurityImpl.getSecurityDomain() and SecurityImpl.getSecurityDomainAndApplication() both refer to an Elytron authentication context.
        Specified by:
        isElytronEnabled in interface SecurityMetadata
        Returns:
        true if is Elytron enabled
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.jboss.jca.common.metadata.common.SecurityImpl
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.jboss.jca.common.metadata.common.SecurityImpl
      • toString

        public String toString()
        Overrides:
        toString in class org.jboss.jca.common.metadata.common.SecurityImpl