public static AuthenticationData createAuthenticationData(Certificate[] certs, UserRegistry userRegistry) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", certs);
        }
        AuthenticationData authData = new WSAuthenticationData();
        X509Certificate[] _certs;
        _certs = new X509Certificate[certs.length];
        for (int i = 0; i < certs.length; i++) {
            if (certs[i] instanceof X509Certificate) {
                _certs[i] = (X509Certificate) certs[i];
            } else {
                _certs = null;
                break;
            }
        }
        authData.set(AuthenticationData.CERTCHAIN, _certs);
        authData.set(AuthenticationData.REALM, getDefaultRealm(userRegistry));
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(tc, CLASS_NAME + "createAuthenticationData", authData);
        }
        return authData;
    }
public static AuthenticationData createAuthenticationData ( Certificate [ ] certs , UserRegistry userRegistry ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "createAuthenticationData" , certs ) ; } AuthenticationData authData = new WSAuthenticationData ( ) ; X509Certificate [ ] _certs ; _certs = new X509Certificate [ certs . length ] ; for ( int i = 0 ; i < certs . length ; i ++ ) { if ( certs [ i ] instanceof X509Certificate ) { _certs [ i ] = ( X509Certificate ) certs [ i ] ; } else { _certs = null ; break ; } } authData . set ( AuthenticationData . CERTCHAIN , _certs ) ; authData . set ( AuthenticationData . REALM , getDefaultRealm ( userRegistry ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , CLASS_NAME + "createAuthenticationData" , authData ) ; } return authData ; }
Create AuthenticationData object from the Certificate

@param certs
@param userRegistry
@return