Package com.cedarpolicy.value
Class EntityUID
java.lang.Object
com.cedarpolicy.value.Value
com.cedarpolicy.value.EntityUID
Represents a Cedar Entity UID. An entity UID contains both the entity type and a unique
identifier for the entity formatted as
TYPE::"ID".-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EntityUID
Build EntityUID.- Parameters:
euid- Entity Unique ID as a string.Note, we limit euids to 1024 chars.
- Throws:
IllegalArgumentException
-
EntityUID
Build EntityUID.- Parameters:
type- Type component of Entity Unique ID.id- Id component of Entity Unique ID.Note, we limit euids to 1024 chars.
- Throws:
IllegalArgumentException
-
-
Method Details
-
toString
As String. -
toCedarExpr
To Cedar expr that can be used in a Cedar policy.- Specified by:
toCedarExprin classValue- Returns:
- Cedar source code for the value.
-
getType
Get the type of the EUID. -
getId
Get the ID of the EUID.
-