Class ConnectionRecord


  • public class ConnectionRecord
    extends Object
    • Constructor Detail

      • ConnectionRecord

        public ConnectionRecord()
    • Method Detail

      • isIncomingConnection

        public boolean isIncomingConnection()
        Tries to determine the direction of a connection
        Returns:
        true in case the connection was not initiated by this agent
      • isOutgoingConnection

        public boolean isOutgoingConnection()
        Tries to determine the direction of a connection
        Returns:
        true in case the connection was initiated by this agent
      • isInvitationResponse

        public boolean isInvitationResponse()
        Tests if the event is on the receiving side of a connection. Meaning this agent received an invitation.
        Returns:
        true if this agent received the invitation
      • isInvitationRequest

        public boolean isInvitationRequest()
        Tests if the event is not on the receiving side of a connection. Meaning this agent created an invitation.
        Returns:
        true if it is not an invitation event
      • isRequestToConnect

        public boolean isRequestToConnect()
        Tests if this event is a connection request e.g. if --auto-accept-requests is set to false
        Returns:
        true in case another agent wants to connect
      • stateIsInvitation

        public boolean stateIsInvitation()
      • stateIsRequest

        public boolean stateIsRequest()
      • stateIsResponse

        public boolean stateIsResponse()
      • stateIsActive

        public boolean stateIsActive()
      • stateIsCompleted

        public boolean stateIsCompleted()
      • protocolIsConnectionV1

        public boolean protocolIsConnectionV1()
      • protocolIsIdDidExchangeV1

        public boolean protocolIsIdDidExchangeV1()
      • getAlias

        public String getAlias()
      • getConnectionId

        public String getConnectionId()
      • getCreatedAt

        public String getCreatedAt()
      • getErrorMsg

        public String getErrorMsg()
      • getInboundConnectionId

        public String getInboundConnectionId()
      • getInvitationKey

        public String getInvitationKey()
      • getInvitationMsgId

        public String getInvitationMsgId()
      • getMyDid

        public String getMyDid()
      • getRequestId

        public String getRequestId()
      • getRfc23Sate

        public String getRfc23Sate()
      • getTheirDid

        public String getTheirDid()
      • getTheirLabel

        public String getTheirLabel()
      • getTheirPublicDid

        public String getTheirPublicDid()
      • getUpdatedAt

        public String getUpdatedAt()
      • setInboundConnectionId

        public ConnectionRecord setInboundConnectionId​(String inboundConnectionId)
        Returns:
        this.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object