|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.utils.repository.DefaultRepository issrg.utils.repository.SAMLRepository
public abstract class SAMLRepository
Field Summary |
---|
Fields inherited from interface issrg.utils.repository.AttributeRepository |
---|
FAILURE_STATUS, INHERENT_FAILURE_STATUS, PARTIAL_SUCCESS_STATUS, SUCCESS_STATUS |
Constructor Summary | |
---|---|
SAMLRepository(java.net.URL urlIn,
SAMLMetaInfo info,
SAMLSecurity sec)
Creates a new instance of SAMLRepository |
Method Summary | |
---|---|
javax.naming.directory.Attribute |
getAllAssertions(java.security.Principal DN)
this method acts as a SAML client to get a SAML Response. |
javax.naming.directory.Attribute |
getAttribute(java.security.Principal DN,
java.lang.String AttributeName)
This method gets the named attribute from the entry with the DN. |
javax.naming.directory.Attributes |
getAttributes(java.security.Principal DN,
java.lang.String[] attrNames)
This method returns the specified attributes or empty set, if the attributes are not present. |
java.lang.Throwable |
getDiagnosis()
This method returns the last Exception thrown or an exception the Repository wanted to throw very much, but did not, only because the error was not fatal. |
int |
getStatus()
This method returns the status of the Repository. |
void |
setSAMLPort(java.lang.String name)
|
Methods inherited from class issrg.utils.repository.DefaultRepository |
---|
getAllAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMLRepository(java.net.URL urlIn, SAMLMetaInfo info, SAMLSecurity sec)
Method Detail |
---|
public void setSAMLPort(java.lang.String name)
public javax.naming.directory.Attribute getAttribute(java.security.Principal DN, java.lang.String AttributeName) throws RepositoryException
getAttributes(DN, new String[]{AttributeName}).get(AttributeName);
getAttribute
in interface AttributeRepository
getAttribute
in class DefaultRepository
DN
- The distinguished nameAttributeName
- The LDAP name for the attribute
RepositoryException
getAttributes(java.security.Principal,String[])
public javax.naming.directory.Attributes getAttributes(java.security.Principal DN, java.lang.String[] attrNames) throws RepositoryException
DN
- is the subject DN.attrNames
- is depreciated here
RepositoryException,
- if no such entry exists, or other error occurs during the call.
RepositoryException
public javax.naming.directory.Attribute getAllAssertions(java.security.Principal DN) throws RepositoryException
DN
- iidentifies the subject, whose attributes will be extracted from the SAML Response.attrNames
- are attribute names, which are used as a filter.
Only the SAML Response, which contains some specified attributes, can be returned.
Otherwise, an empty set is returned.
RepositoryException
public java.lang.Throwable getDiagnosis()
AttributeRepository
TODO: I am very keen to remove getStatus() method, and return DiagnosisException only; which will contain the status code in it and a reference to an embedded exception. Thus it will be possible to throw such an exception in cases of need, and still it will be possible to keep it for further information. I envisage that the PbaException is one of this sort: a DiagnosisException.
AttributeRepository.getStatus()
public int getStatus()
AttributeRepository
AttributeRepository.SUCCESS_STATUS
,
AttributeRepository.FAILURE_STATUS
,
AttributeRepository.PARTIAL_SUCCESS_STATUS
,
AttributeRepository.INHERENT_FAILURE_STATUS
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |