protected void updateSubjectWithSharedStateContents ( ) { subject . getPrincipals ( ) . add ( ( WSPrincipal ) sharedState . get ( Constants . WSPRINCIPAL_KEY ) ) ; subject . getPublicCredentials ( ) . add ( sharedState . get ( Constants . WSCREDENTIAL_KEY ) ) ; if ( sharedState . get ( Constants . WSSSOTOKEN_KEY ) != null ) subject . getPrivateCredentials ( ) . add ( sharedState . get ( Constants . WSSSOTOKEN_KEY ) ) ; }
Sets the original subject with the shared state contents .