Copyright © 2002 SAP AG. All Rights Reserved.

com.sap.security.core.server.securestorage.remote
Class RemoteSecureStorageAdministratorContextImpl

java.lang.Object
  |
  +--javax.rmi.PortableRemoteObject
        |
        +--com.sap.security.core.server.securestorage.remote.RemoteSecureStorageSuperContextImpl
              |
              +--com.sap.security.core.server.securestorage.remote.RemoteSecureStorageAdministratorContextImpl
All Implemented Interfaces:
java.rmi.Remote, RemoteSecureStorageAdministratorContextInterface

public class RemoteSecureStorageAdministratorContextImpl
extends RemoteSecureStorageSuperContextImpl
implements RemoteSecureStorageAdministratorContextInterface


Inner classes inherited from class com.sap.security.core.server.securestorage.remote.RemoteSecureStorageSuperContextImpl
RemoteSecureStorageSuperContextImpl.AddKeyPrivilegedAction, RemoteSecureStorageSuperContextImpl.AliasesPrivilegedAction, RemoteSecureStorageSuperContextImpl.GetKeyPrivilegedAction, RemoteSecureStorageSuperContextImpl.LoadKeyStore
 
Fields inherited from class com.sap.security.core.server.securestorage.remote.RemoteSecureStorageSuperContextImpl
_constants, _J2EEEngineKeystore, _param1, _param2, _secureStorageConfigurationHandler, _serviceContext
 
Constructor Summary
RemoteSecureStorageAdministratorContextImpl(com.sap.engine.frame.core.configuration.ConfigurationHandler secureStorageConfigurationHandler, com.sap.engine.frame.ApplicationServiceContext serviceContext)
          Standard Constructor
 
Method Summary
 void checkConfiguration(java.lang.String name, boolean check)
          check 2nd level configurations Method checkConfiguration.
 void checkRootConfiguration(java.lang.String rootName, boolean check)
          check root configuration Method checkRootConfigurations.
 void deleteObject(int clientType, java.lang.String clientID, java.lang.String objectID)
          Deletes a central stored object of a client
 void generateSecretKeyID(int clientType, java.lang.String clientID)
           
 java.util.Vector getClientIDs(int clientType)
          Returns a list with the names of all web-applications/services (client = web-application|service) which use the secure-storage
 int getEncryptionRate()
           
 java.lang.String getLatestKeyID(int clientType, java.lang.String clientID)
          Returns the latest key of the client
 int getNumberOfAllClientObjects()
           
 int getNumberOfAllClients()
           
 int getNumberOfEncodedObjects()
           
 int getNumberOfEncryptedObjects()
           
 int getNumberOfKeys()
           
 int getNumberOfServiceClientObjects()
           
 int getNumberOfServiceClients()
           
 int getNumberOfServiceKeys()
           
 int getNumberOfWebAppClientObjects()
           
 int getNumberOfWebAppClients()
           
 int getNumberOfWebAppKeys()
           
 java.util.Vector getObjectIDs(int clientType, java.lang.String clientID)
          Returns a list with the names of central stored objects of clients
 java.util.Vector getSecretKeyIDs(java.lang.String clientID, int clientType)
          Returns a list with the names of secret keys of clients
 boolean isClientSecure(int clientType, java.lang.String clientID)
           
 boolean isCryptoLibDepolyed()
           
 boolean isSecure(int clientType, java.lang.String clientID, java.lang.String objectID)
           
 void reEncryptAllCentralStoredObjects()
          Re-encrypts all central stored objects
 void reEncryptCentralStoredObject(int clientType, java.lang.String clientID)
           
 
Methods inherited from class com.sap.security.core.server.securestorage.remote.RemoteSecureStorageSuperContextImpl
createConfiguration, createRoot, generateSecretKey, getKey, getKeystore, getPermissionName, getProtectedProtectionDomainStack, grantPermissions, setKeystoreReference, setNumberOfKeys, setProtectedProtectionDomainStack
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteSecureStorageAdministratorContextImpl

public RemoteSecureStorageAdministratorContextImpl(com.sap.engine.frame.core.configuration.ConfigurationHandler secureStorageConfigurationHandler,
                                                   com.sap.engine.frame.ApplicationServiceContext serviceContext)
                                            throws java.rmi.RemoteException
Standard Constructor
Parameters:
secureStorageConfigurationHandler -  
Method Detail

checkRootConfiguration

public void checkRootConfiguration(java.lang.String rootName,
                                   boolean check)
                            throws CreateConfigurationsException
Description copied from class: RemoteSecureStorageSuperContextImpl
check root configuration Method checkRootConfigurations.
Specified by:
checkRootConfiguration in interface RemoteSecureStorageAdministratorContextInterface
Overrides:
checkRootConfiguration in class RemoteSecureStorageSuperContextImpl

checkConfiguration

public void checkConfiguration(java.lang.String name,
                               boolean check)
Description copied from class: RemoteSecureStorageSuperContextImpl
check 2nd level configurations Method checkConfiguration.
Specified by:
checkConfiguration in interface RemoteSecureStorageAdministratorContextInterface
Overrides:
checkConfiguration in class RemoteSecureStorageSuperContextImpl
Following copied from class: com.sap.security.core.server.securestorage.remote.RemoteSecureStorageSuperContextImpl
Parameters:
name -  
check -  

getLatestKeyID

public java.lang.String getLatestKeyID(int clientType,
                                       java.lang.String clientID)
                                throws NoKeyForClientException,
                                       KeyStoreAccessException,
                                       KeyStoreAccessException
Description copied from class: RemoteSecureStorageSuperContextImpl
Returns the latest key of the client
Specified by:
getLatestKeyID in interface RemoteSecureStorageAdministratorContextInterface
Overrides:
getLatestKeyID in class RemoteSecureStorageSuperContextImpl
Following copied from class: com.sap.security.core.server.securestorage.remote.RemoteSecureStorageSuperContextImpl
Returns:
String
Throws:
KeyStoreAccessException -  
NoKeyForClientException -  

getClientIDs

public java.util.Vector getClientIDs(int clientType)
                              throws StorageLocationOpenException
Returns a list with the names of all web-applications/services (client = web-application|service) which use the secure-storage
Specified by:
getClientIDs in interface RemoteSecureStorageAdministratorContextInterface
Parameters:
clientType -  
Returns:
Vector
Throws:
StorageLocationOpenException -  

getObjectIDs

public java.util.Vector getObjectIDs(int clientType,
                                     java.lang.String clientID)
                              throws StorageLocationOpenException
Returns a list with the names of central stored objects of clients
Specified by:
getObjectIDs in interface RemoteSecureStorageAdministratorContextInterface
Parameters:
clientID -  
clientType -  
Returns:
String[]
Throws:
StorageLocationOpenException -  

getSecretKeyIDs

public java.util.Vector getSecretKeyIDs(java.lang.String clientID,
                                        int clientType)
                                 throws KeyStoreAccessException,
                                        NoKeyForClientException
Returns a list with the names of secret keys of clients
Specified by:
getSecretKeyIDs in interface RemoteSecureStorageAdministratorContextInterface
Parameters:
clientID -  
clientType -  
Returns:
String[]
Throws:
KeyStoreAccessException -  
NoKeyForClientException -  

deleteObject

public void deleteObject(int clientType,
                         java.lang.String clientID,
                         java.lang.String objectID)
                  throws ObjectDeletionException
Deletes a central stored object of a client
Specified by:
deleteObject in interface RemoteSecureStorageAdministratorContextInterface
Parameters:
clientID -  
clientType -  
objectID -  
Throws:
ObjectDeletionException -  

generateSecretKeyID

public void generateSecretKeyID(int clientType,
                                java.lang.String clientID)
                         throws KeyGenerationException
Specified by:
generateSecretKeyID in interface RemoteSecureStorageAdministratorContextInterface

reEncryptCentralStoredObject

public void reEncryptCentralStoredObject(int clientType,
                                         java.lang.String clientID)
                                  throws ObjectModificationException
Specified by:
reEncryptCentralStoredObject in interface RemoteSecureStorageAdministratorContextInterface

reEncryptAllCentralStoredObjects

public void reEncryptAllCentralStoredObjects()
                                      throws ObjectEncryptionException,
                                             java.rmi.RemoteException
Re-encrypts all central stored objects
Specified by:
reEncryptAllCentralStoredObjects in interface RemoteSecureStorageAdministratorContextInterface
Throws:
ObjectEncryptionException -  

isSecure

public boolean isSecure(int clientType,
                        java.lang.String clientID,
                        java.lang.String objectID)
                 throws SecureStorageException
Specified by:
isSecure in interface RemoteSecureStorageAdministratorContextInterface

isClientSecure

public boolean isClientSecure(int clientType,
                              java.lang.String clientID)
                       throws SecureStorageException
Specified by:
isClientSecure in interface RemoteSecureStorageAdministratorContextInterface

getNumberOfServiceClients

public int getNumberOfServiceClients()
                              throws StorageLocationOpenException
Specified by:
getNumberOfServiceClients in interface RemoteSecureStorageAdministratorContextInterface
Returns:
the number of services that uses the securestorage
Throws:
StorageLocationOpenException -  

getNumberOfWebAppClients

public int getNumberOfWebAppClients()
                             throws StorageLocationOpenException
Specified by:
getNumberOfWebAppClients in interface RemoteSecureStorageAdministratorContextInterface
Returns:
the number of webapplications that uses the securestorage
Throws:
StorageLocationOpenException -  

getNumberOfAllClients

public int getNumberOfAllClients()
                          throws StorageLocationOpenException
Specified by:
getNumberOfAllClients in interface RemoteSecureStorageAdministratorContextInterface
Returns:
the number of all clients that uses the securestorage
Throws:
StorageLocationOpenException -  

getNumberOfServiceClientObjects

public int getNumberOfServiceClientObjects()
                                    throws StorageLocationOpenException
Specified by:
getNumberOfServiceClientObjects in interface RemoteSecureStorageAdministratorContextInterface
Returns:
number of objects stored by services
Throws:
StorageLocationOpenException -  

getNumberOfWebAppClientObjects

public int getNumberOfWebAppClientObjects()
                                   throws StorageLocationOpenException
Specified by:
getNumberOfWebAppClientObjects in interface RemoteSecureStorageAdministratorContextInterface
Returns:
number of objects stored by webapps
Throws:
StorageLocationOpenException -  

getNumberOfAllClientObjects

public int getNumberOfAllClientObjects()
                                throws StorageLocationOpenException
Specified by:
getNumberOfAllClientObjects in interface RemoteSecureStorageAdministratorContextInterface
Returns:
number of all objects stored in securestorage
Throws:
StorageLocationOpenException -  

getNumberOfEncryptedObjects

public int getNumberOfEncryptedObjects()
                                throws SecureStorageException
Specified by:
getNumberOfEncryptedObjects in interface RemoteSecureStorageAdministratorContextInterface
Returns:
Number of all unencrypted objects in Secure Storage
Throws:
SecureStorageException -  

getNumberOfEncodedObjects

public int getNumberOfEncodedObjects()
                              throws SecureStorageException
Specified by:
getNumberOfEncodedObjects in interface RemoteSecureStorageAdministratorContextInterface
Returns:
Number of encoded Objects
Throws:
SecureStorageException -  

getEncryptionRate

public int getEncryptionRate()
                      throws SecureStorageException
Specified by:
getEncryptionRate in interface RemoteSecureStorageAdministratorContextInterface

getNumberOfServiceKeys

public int getNumberOfServiceKeys()
                           throws StorageLocationOpenException,
                                  KeyStoreAccessException,
                                  NoKeyForClientException
Specified by:
getNumberOfServiceKeys in interface RemoteSecureStorageAdministratorContextInterface
Returns:
number of Keys used by services
Throws:
StorageLocationOpenException -  
KeyStoreAccessException -  
NoKeyForClientException -  

getNumberOfWebAppKeys

public int getNumberOfWebAppKeys()
                          throws StorageLocationOpenException,
                                 KeyStoreAccessException,
                                 NoKeyForClientException
Specified by:
getNumberOfWebAppKeys in interface RemoteSecureStorageAdministratorContextInterface
Returns:
number of all Keys used by WebApp clients
Throws:
StorageLocationOpenException -  
KeyStoreAccessException -  
NoKeyForClientException -  

getNumberOfKeys

public int getNumberOfKeys()
                    throws StorageLocationOpenException,
                           KeyStoreAccessException,
                           NoKeyForClientException
Specified by:
getNumberOfKeys in interface RemoteSecureStorageAdministratorContextInterface
Returns:
number of all keys
Throws:
StorageLocationOpenException -  
KeyStoreAccessException -  
NoKeyForClientException -  

isCryptoLibDepolyed

public boolean isCryptoLibDepolyed()
Specified by:
isCryptoLibDepolyed in interface RemoteSecureStorageAdministratorContextInterface

Copyright © 2002 SAP AG. All Rights Reserved.