Class UserDetailsLdapMapper.GrantedAuthorityValueTranscoder

  • All Implemented Interfaces:
    org.ldaptive.transcode.ValueTranscoder<org.springframework.security.core.GrantedAuthority>
    Enclosing class:
    UserDetailsLdapMapper

    protected static class UserDetailsLdapMapper.GrantedAuthorityValueTranscoder
    extends org.ldaptive.transcode.AbstractStringValueTranscoder<org.springframework.security.core.GrantedAuthority>
    The granted authority value transcoder.
    Author:
    Christian Bremer
    • Constructor Detail

      • GrantedAuthorityValueTranscoder

        public GrantedAuthorityValueTranscoder​(boolean authorityDn,
                                               Map<String,​String> authorityMap,
                                               String authorityPrefix)
        Instantiates a new granted authority value transcoder.
        Parameters:
        authorityDn - the authority dn
        authorityMap - the authority map
        authorityPrefix - the authority prefix
    • Method Detail

      • decodeStringValue

        public org.springframework.security.core.GrantedAuthority decodeStringValue​(String value)
      • encodeStringValue

        public String encodeStringValue​(org.springframework.security.core.GrantedAuthority value)
      • getType

        public Class<org.springframework.security.core.GrantedAuthority> getType()