public void action( CertGenerationContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String subjectDN = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08219_SUBJECT_DN, subjectDN ) ); } if ( ( subjectDN != null ) && ( subjectDN.trim().length() > 0 ) ) { if ( !Dn.isValid( subjectDN ) ) { String msg = I18n.err( I18n.ERR_08204_INVALID_SUBJECT_DN, subjectDN ); LOG.error( msg ); throw new DecoderException( msg ); } container.getCertGenerationRequest().setSubjectDN( subjectDN ); } else { String msg = I18n.err( I18n.ERR_08202_NULL_TARGET_DN_DECODING_FAILED, Strings.dumpBytes( value.getData() ) ); LOG.error( msg ); throw new DecoderException( msg ); } } } );
public void action( SyncDoneValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getSyncDoneValueControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String matchingRuleOid = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05309_MATCHING_RULE_OID, matchingRuleOid ) ); } container.getCurrentKey().setMatchingRuleId( matchingRuleOid ); container.setGrammarEndAllowed( true ); }
public void action( CertGenerationContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String targetDN = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08215_TARGET_DN, targetDN ) ); } if ( ( targetDN != null ) && ( targetDN.trim().length() > 0 ) ) { if ( !Dn.isValid( targetDN ) ) { String msg = I18n.err( I18n.ERR_08201_INVALID_TARGET_DN, targetDN ); LOG.error( msg ); throw new DecoderException( msg ); } container.getCertGenerationRequest().setTargetDN( targetDN ); } else { String msg = I18n.err( I18n.ERR_08202_NULL_TARGET_DN_DECODING_FAILED, Strings.dumpBytes( value.getData() ) ); LOG.error( msg ); throw new DecoderException( msg ); } } } );
public void action( AdDirSyncContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getAdDirSyncControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
@Override public void action( SortResponseContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atType = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05310_ATTRIBUTE_TYPE, atType ) ); } container.getControl().setAttributeName( atType ); container.setGrammarEndAllowed( true ); } } );
public void action( CertGenerationContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String targetDN = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08215_TARGET_DN, targetDN ) ); } if ( ( targetDN != null ) && ( targetDN.trim().length() > 0 ) ) { if ( !Dn.isValid( targetDN ) ) { String msg = I18n.err( I18n.ERR_08201_INVALID_TARGET_DN, targetDN ); LOG.error( msg ); throw new DecoderException( msg ); } container.getCertGenerationRequest().setTargetDN( targetDN ); } else { String msg = I18n.err( I18n.ERR_08202_NULL_TARGET_DN_DECODING_FAILED, Strings.dumpBytes( value.getData() ) ); LOG.error( msg ); throw new DecoderException( msg ); } } } );
public void action( AdDirSyncContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getAdDirSyncControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String matchingRuleOid = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05309_MATCHING_RULE_OID, matchingRuleOid ) ); } container.getCurrentKey().setMatchingRuleId( matchingRuleOid ); container.setGrammarEndAllowed( true ); }
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValue syncInfoValue = container.getSyncInfoValue(); BerValue value = container.getCurrentTLV().getValue(); byte[] uuid = value.getData(); // UUID must be exactly 16 bytes long if ( ( uuid == null ) || ( uuid.length != 16 ) ) { String msg = I18n.err( I18n.ERR_08302_BAD_UUID_VALUE_INCORRECT_LENGTH ); LOG.error( msg ); throw new DecoderException( msg ); } if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08302_UUID, Strings.dumpBytes( uuid ) ) ); } // Store the UUID in the UUIDs list syncInfoValue.addSyncUUID( uuid ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncRequestValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String matchingRuleOid = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05309_MATCHING_RULE_OID, matchingRuleOid ) ); } container.getCurrentKey().setMatchingRuleId( matchingRuleOid ); container.setGrammarEndAllowed( true ); }
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValue syncInfoValue = container.getSyncInfoValue(); BerValue value = container.getCurrentTLV().getValue(); byte[] uuid = value.getData(); // UUID must be exactly 16 bytes long if ( ( uuid == null ) || ( uuid.length != 16 ) ) { String msg = I18n.err( I18n.ERR_08302_BAD_UUID_VALUE_INCORRECT_LENGTH ); LOG.error( msg ); throw new DecoderException( msg ); } if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08302_UUID, Strings.dumpBytes( uuid ) ) ); } // Store the UUID in the UUIDs list syncInfoValue.addSyncUUID( uuid ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncStateValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] entryUUID = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08106_ENTRY_UUID, Strings.dumpBytes( entryUUID ) ) ); } container.getSyncStateValueControl().setEntryUUID( entryUUID ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
@Override public void action( SortResponseContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atType = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05310_ATTRIBUTE_TYPE, atType ) ); } container.getControl().setAttributeName( atType ); container.setGrammarEndAllowed( true ); } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValue syncInfoValue = container.getSyncInfoValue(); BerValue value = container.getCurrentTLV().getValue(); byte[] uuid = value.getData(); // UUID must be exactly 16 bytes long if ( ( uuid == null ) || ( uuid.length != 16 ) ) { String msg = I18n.err( I18n.ERR_08302_BAD_UUID_VALUE_INCORRECT_LENGTH ); LOG.error( msg ); throw new DecoderException( msg ); } if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08302_UUID, Strings.dumpBytes( uuid ) ) ); } // Store the UUID in the UUIDs list syncInfoValue.getSyncUUIDs().add( uuid ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncRequestValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
@Override public void action( SortResponseContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atType = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05310_ATTRIBUTE_TYPE, atType ) ); } container.getControl().setAttributeName( atType ); container.setGrammarEndAllowed( true ); } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValue syncInfoValue = container.getSyncInfoValue(); BerValue value = container.getCurrentTLV().getValue(); byte[] uuid = value.getData(); // UUID must be exactly 16 bytes long if ( ( uuid == null ) || ( uuid.length != 16 ) ) { String msg = I18n.err( I18n.ERR_08302_BAD_UUID_VALUE_INCORRECT_LENGTH ); LOG.error( msg ); throw new DecoderException( msg ); } if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08302_UUID, Strings.dumpBytes( uuid ) ) ); } // Store the UUID in the UUIDs list syncInfoValue.getSyncUUIDs().add( uuid ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncRequestValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );