public static ExtendedKeyUsages getExtendedKeyUsages ( ExtendedKeyUsage usages ) { if ( usages == null ) { return null ; } List < String > usageStr = new ArrayList < String > ( ) ; for ( KeyPurposeId keyPurposeId : usages . getUsages ( ) ) { usageStr . add ( keyPurposeId . getId ( ) ) ; } return new ExtendedKeyUsages ( usageStr ) ; }
Convert extended usages from Bouncy Castle .