@ Override public void engineDeleteEntry ( String s ) throws KeyStoreException { SecurityObjectWrapper < ? > object = this . aliasObjectMap . remove ( s ) ; if ( object != null ) { if ( object instanceof ResourceTrustAnchor ) { ResourceTrustAnchor descriptor = ( ResourceTrustAnchor ) object ; Certificate cert ; try { cert = descriptor . getTrustAnchor ( ) . getTrustedCert ( ) ; } catch ( ResourceStoreException e ) { throw new KeyStoreException ( e ) ; } this . certFilenameMap . remove ( cert ) ; boolean success = descriptor . getFile ( ) . delete ( ) ; if ( ! success ) { // JGLOBUS-91 : warn? throw error? logger . info ( "Unable to delete certificate" ) ; } } else if ( object instanceof ResourceProxyCredential ) { ResourceProxyCredential proxy = ( ResourceProxyCredential ) object ; try { proxy . getCredential ( ) ; } catch ( ResourceStoreException e ) { throw new KeyStoreException ( e ) ; } boolean success = proxy . getFile ( ) . delete ( ) ; if ( ! success ) { // JGLOBUS-91 : warn? throw error? logger . info ( "Unable to delete credential" ) ; } } } }
Delete a security object from this keystore .