public static AlgorithmIdentifier getSignerAlgoritmIdentifier ( Signer signer ) { if ( signer instanceof ContentSigner ) { return ( ( ContentSigner ) signer ) . getAlgorithmIdentifier ( ) ; } else { return AlgorithmIdentifier . getInstance ( signer . getEncoded ( ) ) ; } }
Get the algorithm identifier of a signer .