Class ConnectionRecord
- java.lang.Object
-
- org.hyperledger.aries.api.connection.ConnectionRecord
-
public class ConnectionRecord extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectionRecord.ConnectionProtocolstatic classConnectionRecord.InvitationModestatic classConnectionRecord.RoutingState
-
Constructor Summary
Constructors Constructor Description ConnectionRecord()
-
Method Summary
-
-
-
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()
-
getAccept
public ConnectionAcceptance getAccept()
-
getAlias
public String getAlias()
-
getConnectionId
public String getConnectionId()
-
getConnectionProtocol
public ConnectionRecord.ConnectionProtocol getConnectionProtocol()
-
getCreatedAt
public String getCreatedAt()
-
getErrorMsg
public String getErrorMsg()
-
getInboundConnectionId
public String getInboundConnectionId()
-
getInvitationKey
public String getInvitationKey()
-
getInvitationMode
public ConnectionRecord.InvitationMode getInvitationMode()
-
getInvitationMsgId
public String getInvitationMsgId()
-
getMyDid
public String getMyDid()
-
getRequestId
public String getRequestId()
-
getRfc23Sate
public String getRfc23Sate()
-
getRoutingState
public ConnectionRecord.RoutingState getRoutingState()
-
getState
public ConnectionState getState()
-
getTheirDid
public String getTheirDid()
-
getTheirLabel
public String getTheirLabel()
-
getTheirPublicDid
public String getTheirPublicDid()
-
getTheirRole
public ConnectionTheirRole getTheirRole()
-
getUpdatedAt
public String getUpdatedAt()
-
setAccept
public ConnectionRecord setAccept(ConnectionAcceptance accept)
- Returns:
this.
-
setAlias
public ConnectionRecord setAlias(String alias)
- Returns:
this.
-
setConnectionId
public ConnectionRecord setConnectionId(String connectionId)
- Returns:
this.
-
setConnectionProtocol
public ConnectionRecord setConnectionProtocol(ConnectionRecord.ConnectionProtocol connectionProtocol)
- Returns:
this.
-
setCreatedAt
public ConnectionRecord setCreatedAt(String createdAt)
- Returns:
this.
-
setErrorMsg
public ConnectionRecord setErrorMsg(String errorMsg)
- Returns:
this.
-
setInboundConnectionId
public ConnectionRecord setInboundConnectionId(String inboundConnectionId)
- Returns:
this.
-
setInvitationKey
public ConnectionRecord setInvitationKey(String invitationKey)
- Returns:
this.
-
setInvitationMode
public ConnectionRecord setInvitationMode(ConnectionRecord.InvitationMode invitationMode)
- Returns:
this.
-
setInvitationMsgId
public ConnectionRecord setInvitationMsgId(String invitationMsgId)
- Returns:
this.
-
setMyDid
public ConnectionRecord setMyDid(String myDid)
- Returns:
this.
-
setRequestId
public ConnectionRecord setRequestId(String requestId)
- Returns:
this.
-
setRfc23Sate
public ConnectionRecord setRfc23Sate(String rfc23Sate)
- Returns:
this.
-
setRoutingState
public ConnectionRecord setRoutingState(ConnectionRecord.RoutingState routingState)
- Returns:
this.
-
setState
public ConnectionRecord setState(ConnectionState state)
- Returns:
this.
-
setTheirDid
public ConnectionRecord setTheirDid(String theirDid)
- Returns:
this.
-
setTheirLabel
public ConnectionRecord setTheirLabel(String theirLabel)
- Returns:
this.
-
setTheirPublicDid
public ConnectionRecord setTheirPublicDid(String theirPublicDid)
- Returns:
this.
-
setTheirRole
public ConnectionRecord setTheirRole(ConnectionTheirRole theirRole)
- Returns:
this.
-
setUpdatedAt
public ConnectionRecord setUpdatedAt(String updatedAt)
- Returns:
this.
-
canEqual
protected boolean canEqual(Object other)
-
-