Class HashAuthenticationTokenMarshaller<T extends org.springframework.security.authentication.AbstractAuthenticationToken>

java.lang.Object
org.wildfly.clustering.spring.security.authentication.HashAuthenticationTokenMarshaller<T>
Type Parameters:
T - token type
All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<T>, org.infinispan.protostream.ProtobufTagMarshaller<T>, org.wildfly.clustering.marshalling.protostream.Marshallable<T>, org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller<T>, org.wildfly.clustering.marshalling.protostream.Readable<T>, org.wildfly.clustering.marshalling.protostream.Writable<T>

public class HashAuthenticationTokenMarshaller<T extends org.springframework.security.authentication.AbstractAuthenticationToken> extends Object implements org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller<T>
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.infinispan.protostream.ProtobufTagMarshaller

    org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, org.infinispan.protostream.ProtobufTagMarshaller.ReadContext, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends T>
     
    readFrom(org.wildfly.clustering.marshalling.protostream.ProtoStreamReader reader)
     
    void
    writeTo(org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter writer, T token)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.Marshallable

    size

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller

    getTypeName, read, wrap, wrap, write
  • Constructor Details

    • HashAuthenticationTokenMarshaller

      public HashAuthenticationTokenMarshaller(Class<T> tokenClass, ToIntFunction<T> hash)
  • Method Details

    • readFrom

      public T readFrom(org.wildfly.clustering.marshalling.protostream.ProtoStreamReader reader) throws IOException
      Specified by:
      readFrom in interface org.wildfly.clustering.marshalling.protostream.Readable<T extends org.springframework.security.authentication.AbstractAuthenticationToken>
      Throws:
      IOException
    • writeTo

      public void writeTo(org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter writer, T token) throws IOException
      Specified by:
      writeTo in interface org.wildfly.clustering.marshalling.protostream.Writable<T extends org.springframework.security.authentication.AbstractAuthenticationToken>
      Throws:
      IOException
    • getJavaClass

      public Class<? extends T> getJavaClass()
      Specified by:
      getJavaClass in interface org.infinispan.protostream.BaseMarshaller<T extends org.springframework.security.authentication.AbstractAuthenticationToken>
      Specified by:
      getJavaClass in interface org.wildfly.clustering.marshalling.protostream.Marshallable<T extends org.springframework.security.authentication.AbstractAuthenticationToken>