Class RequestingPartyToken.PermissionsSetConverter

    • Constructor Detail

      • PermissionsSetConverter

        @Inject
        public PermissionsSetConverter​(@Named("cts-json-object-mapper")
                                       com.fasterxml.jackson.databind.ObjectMapper mapper)
    • Method Detail

      • convertFrom

        public byte[] convertFrom​(Set<Permission> permissions)
        Description copied from interface: Converter
        Converts the object from its original format.
        Specified by:
        convertFrom in interface Converter<Set<Permission>,​byte[]>
        Parameters:
        permissions - The object being converted.
        Returns:
        The converted object.
      • convertBack

        public Set<Permission> convertBack​(byte[] bytes)
        Description copied from interface: Converter
        Converts the object back to its original format.
        Specified by:
        convertBack in interface Converter<Set<Permission>,​byte[]>
        Parameters:
        bytes - The object being converted.
        Returns:
        The converted object.