@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class SecurityClaims extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TO_STRING_MESSAGE |
Constructor and Description |
---|
SecurityClaims() |
Modifier and Type | Method and Description |
---|---|
void |
addClaim(java.lang.String name,
java.lang.String value)
Adds a SecurityClaims object to this SecurityClaims object. |
int |
count()
Returns the number of SecurityClaims associated with this SecurityClaims object. |
java.util.Map<java.lang.String,java.lang.String> |
getClaims()
Returns the SecurityClaims associated with this SecurityClaims object. |
boolean |
hasClaims()
Returns a boolean value that indicates whether any SecurityClaims are associated with this SecurityClaims object. |
java.lang.String |
toString()
Returns a string representation of this SecurityClaims object. |
public static final java.lang.String TO_STRING_MESSAGE
@ThingworxExtensionApiMethod(since={7,1}) public java.util.Map<java.lang.String,java.lang.String> getClaims()
@ThingworxExtensionApiMethod(since={7,1}) public boolean hasClaims()
@ThingworxExtensionApiMethod(since={7,1}) public int count()
@ThingworxExtensionApiMethod(since={7,1}) public void addClaim(java.lang.String name, java.lang.String value)
name
- the name of the SecurityClaims (e.g., "userid", "password", "appKey")value
- the value of the SecurityClaims@ThingworxExtensionApiMethod(since={7,1}) public java.lang.String toString()
toString
in class java.lang.Object