com.sap.security.core.server.ssf
Class SsfSigRcpList

java.lang.Object
  |
  +--com.sap.security.core.server.ssf.SsfSigRcpList

public class SsfSigRcpList
extends java.lang.Object

Class for representing a list of signer or recipients,

See Also:
SsfSigRcpInfo

Constructor Summary
SsfSigRcpList()
           
 
Method Summary
 boolean add(SsfSigRcpInfo info)
          Add an entry to the list.
 boolean checkInitialCerts(ISsfPab pab, boolean all)
          For all entries with status SSF_INITIAL, check if the entry's certificate is valid and trusted and change its status to SSF_OK, SSF_NO_CERTIFICATE, SSF_INVALID_CERT or SSF_UNTRUSTED_CERT.
 void clear()
          Clear the list.
 SsfSigRcpInfo get(int i)
          Get the i-th entry from the list.
 void setInitial()
          Set the status of all entries to SSF_INITIAL.
 int size()
          Get the size of the list.
 java.lang.String toString()
          Get description of the signer/recipient list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SsfSigRcpList

public SsfSigRcpList()
Method Detail

add

public boolean add(SsfSigRcpInfo info)
Add an entry to the list.
Parameters:
info - signer/recipient info to be added.

clear

public void clear()
Clear the list.

size

public int size()
Get the size of the list.
Returns:
number of signer/recipient infos

get

public SsfSigRcpInfo get(int i)
Get the i-th entry from the list.
Returns:
signer/recipient info
Throws:
IndexOutOfBoundsException - if index is out of range (index < 0 || index >= size()).

setInitial

public void setInitial()
Set the status of all entries to SSF_INITIAL.

checkInitialCerts

public boolean checkInitialCerts(ISsfPab pab,
                                 boolean all)
For all entries with status SSF_INITIAL, check if the entry's certificate is valid and trusted and change its status to SSF_OK, SSF_NO_CERTIFICATE, SSF_INVALID_CERT or SSF_UNTRUSTED_CERT.
Parameters:
pab - Private address book containg the trusted root certificates
all - Determine how single checks are combined to a overall result. If true, all checks must be sucessful. If false, one check must be sucessful.
Returns:
boolean representing the overall result

toString

public java.lang.String toString()
Get description of the signer/recipient list
Overrides:
toString in class java.lang.Object
Returns:
string containing the description