public final class IDCSAppRoleImpl extends WLSAbstractPrincipal implements IDCSAppRole
IDCSAppRoleImpl
is a convenience class that
is a Java Principal
which
implements IDCSAppRole
and represents instances of an
Oracle Identity Cloud Service application role in the Java Subject
.
The memberships in an Oracle Identity Cloud Service application role are usually discovered
and added to the Java Subject
during the Authentication
or Identity Assertion process.
Note: Use of this class is not required by WebLogic Server. It is simply a convenience class.
IDCSAppRole
,
WLSAbstractPrincipal
,
Serialized FormModifier and Type | Field and Description |
---|---|
private java.lang.String |
appId |
private java.lang.String |
appName |
private static long |
serialVersionUID |
principalFactoryCreated
Constructor and Description |
---|
IDCSAppRoleImpl(java.lang.String appRoleName,
java.lang.String appName)
Create an instance of the Oracle Identity Cloud Service application role principal with only name and application name.
|
IDCSAppRoleImpl(java.lang.String appRoleName,
java.lang.String id,
java.lang.String ref,
java.lang.String appName,
java.lang.String appId)
Create an instance of the Oracle Identity Cloud Service application role principal.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object another)
Compares this principal to the principal in the specified object.
|
java.lang.String |
getAppId()
Gets the containing Oracle Identity Cloud Service application name identifier for the Oracle Identity Cloud Service application role.
|
java.lang.String |
getAppName()
Gets the containing Oracle Identity Cloud Service application name for the Oracle Identity Cloud Service application role.
|
java.lang.String |
getId()
Gets the Oracle Identity Cloud Service application role identifier.
|
java.lang.String |
getReference()
Gets the Oracle Identity Cloud Service application role URL reference.
|
byte[] |
getSignedData()
Gets the derived principal's signing data, which is
used to generate the trust signature.
|
int |
hashCode()
Returns a hashcode for the name of this principal.
|
java.lang.String |
toString()
Returns a String representation of this principal.
|
getDn, getGuid, getIdentityDomain, getName, getSalt, getSignature, getSignedDataCaseSensitive, isEqualsCaseInsensitive, isEqualsCompareDnAndGuid, isPrincipalFactoryCreated, setDn, setEqualsCaseInsensitive, setEqualsCompareDnAndGuid, setGuid, setIdentityDomain, setName, setSalt, setSignature
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName
private static final long serialVersionUID
private java.lang.String appName
private java.lang.String appId
public IDCSAppRoleImpl(java.lang.String appRoleName, java.lang.String id, java.lang.String ref, java.lang.String appName, java.lang.String appId)
appRoleName
- The Oracle Identity Cloud Service application role nameid
- The Oracle Identity Cloud Service application role identifierref
- The Oracle Identity Cloud Service application role referenceappName
- The containing Oracle Identity Cloud Service application nameappId
- The containing Oracle Identity Cloud Service application identifierIDCSAppRole
public IDCSAppRoleImpl(java.lang.String appRoleName, java.lang.String appName)
appRoleName
- The Oracle Identity Cloud Service application role nameappName
- The containing Oracle Identity Cloud Service application nameIDCSAppRole
public byte[] getSignedData()
WLSAbstractPrincipal
getSignedData
in interface WLSPrincipal
getSignedData
in class WLSAbstractPrincipal
public int hashCode()
WLSAbstractPrincipal
hashCode
in interface java.security.Principal
hashCode
in class WLSAbstractPrincipal
public boolean equals(java.lang.Object another)
WLSAbstractPrincipal
equals
in interface java.security.Principal
equals
in class WLSAbstractPrincipal
another
- the other principal with which to compare this principal.TRUE
if the principal passed in matches the principal
passed in, and FALSE
otherwise.public java.lang.String toString()
WLSAbstractPrincipal
toString
in interface java.security.Principal
toString
in class WLSAbstractPrincipal
public java.lang.String getId()
IDCSAppRole
getId
in interface IDCSAppRole
public java.lang.String getReference()
IDCSAppRole
getReference
in interface IDCSAppRole
public java.lang.String getAppName()
IDCSAppRole
getAppName
in interface IDCSAppRole
public java.lang.String getAppId()
IDCSAppRole
getAppId
in interface IDCSAppRole