public interface Subject
You can gain access to an workflow action caller's subject as follows:
subject = workflowContext.getCallerSubject();
From there you can get information about the subject using the same
methods as com.soa.security.script.Subject
This class should properly overload the normal scripted Subject
but that is not possible due to the way the constructors of that class
are defined. Instead, this class delegates most of its methods to the
underlying scripted Subject
.
com.soa.security.script.Subject
Modifier and Type | Interface and Description |
---|---|
static class |
Subject.PrincipalImpl |
Modifier and Type | Method and Description |
---|---|
void |
addPrivateCredential(java.lang.Object credential)
Adds a private credential to the subject.
|
void |
addPublicCredential(java.lang.Object credential)
Adds a public credential to the subject.
|
BST |
getBST(java.lang.String type)
Returns the Binary Security Token (BST) public credential with the given type associated with the
subject (if any).
|
java.security.cert.X509Certificate[] |
getCertificateChain()
Returns the chain of X.509 certificates associated with the Subject.
|
Name |
getInputName()
Returns the
com.soa.security.script.Name public credential public credential associated with the subject (if
any). |
Principal[] |
getPrincipals()
Returns the list of principals associated with the Subject.
|
java.lang.Object[] |
getPublicCredentials()
Returns the list of public credentials associated with the Subject.
|
SAML1 |
getSAML1()
Returns the
com.soa.security.script.saml1.SAML1 public credential public credential
associated with the subject (if any). |
SAML2 |
getSAML2()
Returns the
com.soa.security.script.saml2.SAML2 public credential public credential
associated with the subject (if any). |
void |
removePublicCredential(java.lang.Object credential)
Removes a public credential from the subject.
|
Principal[] getPrincipals()
Principal
s.
Overload the normal scripted Subject
method so
users can determine the type of principals (class name)
and access the native Principal methods to access type-specific
information in the Principal
. For examplem this is needed
in order for workflow scripting to determine the caller
identity in CM workflowsjava.lang.Object[] getPublicCredentials()
void addPublicCredential(java.lang.Object credential)
credential
- Credential to add (see com.soa.security.script.BST
, X509Certificate
,
com.soa.security.script.Name
, com.soa.security.script.saml1.SAML1
,
com.soa.security.script.saml2.SAML2
)void addPrivateCredential(java.lang.Object credential)
credential
- Credential to add (see com.soa.security.script.Password
void removePublicCredential(java.lang.Object credential)
credential
- Credential to remove.java.security.cert.X509Certificate[] getCertificateChain()
BST getBST(java.lang.String type)
type
- String URI representing the type of BST public credential to return.com.soa.security.script.BST
of the given type, null if not present.Name getInputName()
com.soa.security.script.Name
public credential public credential associated with the subject (if
any). Note this credential is an unauthenticated name. To obtain the authenticated name of the
subject use getPrincipals()
.com.soa.security.script.Name
public credential, null if not present.SAML1 getSAML1()
com.soa.security.script.saml1.SAML1
public credential public credential
associated with the subject (if any).com.soa.security.script.saml1.SAML1
public credential, null if not present.SAML2 getSAML2()
com.soa.security.script.saml2.SAML2
public credential public credential
associated with the subject (if any).com.soa.security.script.saml2.SAML2
public credential, null if not present.?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.