xsul.dsig.saml.authorization
Class Capability

java.lang.Object
  extended byxsul.dsig.saml.authorization.Capability

public class Capability
extends java.lang.Object


Constructor Summary
Capability()
           
Capability(java.util.Collection _assertions)
           
Capability(java.io.File _fsas)
           
Capability(java.io.InputStream _fstrm)
           
Capability(java.lang.String capstr)
           
Capability(java.lang.String _subject, java.lang.String _ePR, java.util.Collection _users, java.lang.String _nspace, java.util.Map _actionswithdecisions, java.util.Date _notbefore, java.util.Date _notafter, GlobusCredential _cred, boolean _postponed)
          Constructor
 
Method Summary
 void addAssertion(SAMLAssertion sa)
           
 java.util.Map getActionswithdecisions()
           
 SAMLAssertion[] getAllAssertions()
           
 java.lang.String getId()
           
 java.lang.String getNamespace()
           
 java.util.Date getNotafter()
           
 java.util.Date getNotbefore()
           
 java.lang.String getOwner()
           
 java.lang.String getResource()
           
 java.util.Collection getUsers()
           
 boolean isExpired()
           
 boolean isSigned()
           
 void setActionswithdecisions(java.util.Map actionswithdecisions)
           
 void setId(java.lang.String id)
           
 void setNamespace(java.lang.String namespace)
           
 void setNotafter(java.util.Date notafter)
           
 void setNotbefore(java.util.Date notbefore)
           
 void setOwner(java.lang.String owner)
           
 void setResource(java.lang.String iden)
           
 void setUsers(java.util.Collection users)
           
 void sign(GlobusCredential _cred)
           
 java.lang.String toString()
           
 void verify()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Capability

public Capability()

Capability

public Capability(java.util.Collection _assertions)
           throws CapabilityException

Capability

public Capability(java.io.File _fsas)

Capability

public Capability(java.io.InputStream _fstrm)

Capability

public Capability(java.lang.String capstr)
           throws XsulException

Capability

public Capability(java.lang.String _subject,
                  java.lang.String _ePR,
                  java.util.Collection _users,
                  java.lang.String _nspace,
                  java.util.Map _actionswithdecisions,
                  java.util.Date _notbefore,
                  java.util.Date _notafter,
                  GlobusCredential _cred,
                  boolean _postponed)
           throws CapabilityException
Constructor

Parameters:
_subject - the owner's distinguished name (DN)
_ePR - the identifier of the web service
_users - A list of users, could be either groupname or users' DNs
_nspace - namespace, by default XpolaConstants.LEADNAMESPACE
_notbefore - the capability token is not valid before this date
_notafter - the capability token is not valid after this date
_cred - the owner's GlobusCredential for signing the capability token
_postponed - whether to sign it right now or later.
Throws:
CapabilityException
Method Detail

sign

public void sign(GlobusCredential _cred)
          throws CapabilityException
Throws:
CapabilityException

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

setOwner

public void setOwner(java.lang.String owner)

getOwner

public java.lang.String getOwner()

setResource

public void setResource(java.lang.String iden)

getResource

public java.lang.String getResource()

setUsers

public void setUsers(java.util.Collection users)

getUsers

public java.util.Collection getUsers()

setNamespace

public void setNamespace(java.lang.String namespace)

getNamespace

public java.lang.String getNamespace()

setActionswithdecisions

public void setActionswithdecisions(java.util.Map actionswithdecisions)

getActionswithdecisions

public java.util.Map getActionswithdecisions()

setNotbefore

public void setNotbefore(java.util.Date notbefore)

getNotbefore

public java.util.Date getNotbefore()

setNotafter

public void setNotafter(java.util.Date notafter)

getNotafter

public java.util.Date getNotafter()

addAssertion

public void addAssertion(SAMLAssertion sa)

getAllAssertions

public SAMLAssertion[] getAllAssertions()

isSigned

public boolean isSigned()

toString

public java.lang.String toString()

verify

public void verify()
            throws CapabilityException
Throws:
CapabilityException

isExpired

public boolean isExpired()


IU Extreme! Lab (http://www.extreme.indiana.edu)