Package org.opensaml.security.criteria
Class PeerEntityIDCriterion
java.lang.Object
org.opensaml.security.criteria.PeerEntityIDCriterion
- All Implemented Interfaces:
Criterion
An implementation of
Criterion which specifies criteria pertaining
to peer entity IDs. This is typically used only in conjunction with a
EntityIdCriterion, where the peer is interpreted to be relative
to that primary entity ID. In this sense it serves to scope the primary entity ID.
Note that the peer entity ID may be either local or remote,
depending on whether the associated primary entity ID is remote or local.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the entity ID which is the peer relative to a primary entity ID.inthashCode()voidSet the entity ID which is the peer relative to a primary entity ID.toString()validatePeerID(String peer) Validate peer ID criterion.
-
Field Details
-
peerID
Peer entity ID criteria.
-
-
Constructor Details
-
PeerEntityIDCriterion
Constructor.- Parameters:
peer- the entity ID which is the peer relative to a primary entity ID
-
-
Method Details
-
getPeerID
Get the entity ID which is the peer relative to a primary entity ID.- Returns:
- the peer entity ID.
-
setPeerID
Set the entity ID which is the peer relative to a primary entity ID.- Parameters:
peer- The peerID to set.
-
toString
-
hashCode
public int hashCode() -
equals
-
validatePeerID
Validate peer ID criterion.- Parameters:
peer- ID to check- Returns:
- the input if non-null/empty
-