private void writeObject(ObjectOutputStream out) throws IOException {
        PutField fields = out.putFields();
        fields.put(AUTH_METHOD, authMethod);
        fields.put(ACCESS_ID, accessId);
        fields.put(SECURITY_NAME, securityName);
        out.writeFields();
    }
private void writeObject ( ObjectOutputStream out ) throws IOException { PutField fields = out . putFields ( ) ; fields . put ( AUTH_METHOD , authMethod ) ; fields . put ( ACCESS_ID , accessId ) ; fields . put ( SECURITY_NAME , securityName ) ; out . writeFields ( ) ; }
Serialize security context.

@param out The stream to which this object is serialized.

@throws IOException