Class InvitationMessage<T>

  • Type Parameters:
    T - tape of the service object either String or InvitationMessage.InvitationMessageService

    public class InvitationMessage<T>
    extends Object
    Out Of Band Invitation Message
    
     InvitationMessage<String> inviteString = gson.fromJson(inviteJson, InvitationMessage.STRING_TYPE);
     InvitationMessage<InvitationMessage.InvitationMessageService> complexType = gson.fromJson(inviteJson, InvitationMessage.RFC0067_TYPE);
     
     
    • Field Detail

      • RFC0067_TYPE

        public static final Type RFC0067_TYPE
        Used to deserialize RFC0067 service types
      • STRING_TYPE

        public static final Type STRING_TYPE
        Used to deserialize DID string service types
    • Method Detail

      • getAtId

        public String getAtId()
      • getAtType

        public String getAtType()
      • getLabel

        public String getLabel()
      • getGoalCode

        public String getGoalCode()
      • getGoal

        public String getGoal()
      • getHandshakeProtocols

        public List<String> getHandshakeProtocols()
      • getServices

        public List<T> getServices()
        Either a DIDComm service object (as per RFC0067) or a DID string.
      • setAtId

        public void setAtId​(String atId)
      • setAtType

        public void setAtType​(String atType)
      • setLabel

        public void setLabel​(String label)
      • setGoalCode

        public void setGoalCode​(String goalCode)
      • setGoal

        public void setGoal​(String goal)
      • setAccept

        public void setAccept​(List<String> accept)
      • setHandshakeProtocols

        public void setHandshakeProtocols​(List<String> handshakeProtocols)
      • setServices

        public void setServices​(List<T> services)
        Either a DIDComm service object (as per RFC0067) or a DID string.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object