public static byte [ ] getExtensionValue ( X509Certificate cert , String oid ) throws IOException { if ( cert == null ) { throw new IllegalArgumentException ( i18n . getMessage ( "certNull" ) ) ; } if ( oid == null ) { throw new IllegalArgumentException ( i18n . getMessage ( "oidNull" ) ) ; } byte [ ] value = cert . getExtensionValue ( oid ) ; if ( value == null ) { return null ; } return getExtensionValue ( value ) ; }
Returns the actual value of the extension .