Refine search
LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, "null" ) ); strValue = Strings.utf8ToString( ( byte[] ) value );
throw new InvalidNameException( I18n.err( I18n.ERR_17037_MUST_START_WITH_SHARP ) ); throw new InvalidNameException( I18n.err( I18n.ERR_17038_MUST_START_WITH_ESC_SHARP, str ) ); return Strings.utf8ToString( decoded );
private ResultCodeEnum handleSearchResultDone( SearchResultDone searchDone ) { CONSUMER_LOG.debug( "///////////////// handleSearchDone //////////////////" ); SyncDoneValue ctrl = ( SyncDoneValue ) searchDone.getControls().get( SyncDoneValue.OID ); if ( ( ctrl != null ) && ( ctrl.getCookie() != null ) ) { syncCookie = ctrl.getCookie(); CONSUMER_LOG.debug( "assigning cookie from sync done value control: " + Strings.utf8ToString( syncCookie ) ); storeCookie(); } CONSUMER_LOG.debug( "//////////////// END handleSearchDone//////////////////////" ); reload = false; return searchDone.getLdapResult().getResultCode(); }
LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, "null" ) ); strValue = Strings.utf8ToString( ( byte[] ) value );
public void action( CertGenerationContainer container ) { BerValue value = container.getCurrentTLV().getValue(); String keyAlgorithm = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08218_KEY_ALGORITHM, keyAlgorithm ) ); } if ( keyAlgorithm != null && ( keyAlgorithm.trim().length() > 0 ) ) { container.getCertGenerationRequest().setKeyAlgorithm( keyAlgorithm ); } container.setGrammarEndAllowed( true ); } } );
/** * Sets the User Provided ID as a byte[] * * @param upId The User Provided ID * @param attributeType The asscoiated AttributeType */ public void setUpId( byte[] upId, AttributeType attributeType ) { byte[] trimmed = Strings.trim( upId ); if ( Strings.isEmpty( trimmed ) && ( attributeType == null ) ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_13235_NULL_ID_WITH_NULL_AT_NOT_ALLOWED ) ); } String newId = Strings.toLowerCase( trimmed ); setUpIdInternal( Strings.utf8ToString( upId ), newId, attributeType ); }
LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, "null" ) ); strValue = Strings.utf8ToString( ( byte[] ) value );
public void action( CertGenerationContainer container ) { BerValue value = container.getCurrentTLV().getValue(); String keyAlgorithm = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08218_KEY_ALGORITHM, keyAlgorithm ) ); } if ( keyAlgorithm != null && ( keyAlgorithm.trim().length() > 0 ) ) { container.getCertGenerationRequest().setKeyAlgorithm( keyAlgorithm ); } container.setGrammarEndAllowed( true ); } } );
/** * Sets the User Provided ID as a byte[] * * @param upId The User Provided ID * @param attributeType The asscoiated AttributeType */ public void setUpId( byte[] upId, AttributeType attributeType ) { byte[] trimmed = Strings.trim( upId ); if ( Strings.isEmpty( trimmed ) && ( attributeType == null ) ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_13235_NULL_ID_WITH_NULL_AT_NOT_ALLOWED ) ); } String newId = Strings.toLowerCase( trimmed ); setUpIdInternal( Strings.utf8ToString( upId ), newId, attributeType ); }
LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, "null" ) ); strValue = Strings.utf8ToString( ( byte[] ) value ); LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, value ) );
public void action( CertGenerationContainer container ) { BerValue value = container.getCurrentTLV().getValue(); String keyAlgorithm = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08218_KEY_ALGORITHM, keyAlgorithm ) ); } if ( keyAlgorithm != null && ( keyAlgorithm.trim().length() > 0 ) ) { container.getCertGenerationRequest().setKeyAlgorithm( keyAlgorithm ); } container.setGrammarEndAllowed( true ); } } );
/** * Sets the User Provided ID as a byte[] * * @param upId The User Provided ID * @param attributeType The asscoiated AttributeType */ public void setUpId( byte[] upId, AttributeType attributeType ) { byte[] trimmed = Strings.trim( upId ); if ( Strings.isEmpty( trimmed ) && ( attributeType == null ) ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_13235_NULL_ID_WITH_NULL_AT_NOT_ALLOWED ) ); } String newId = Strings.toLowerCase( trimmed ); setUpIdInternal( Strings.utf8ToString( upId ), newId, attributeType ); }
LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, "null" ) ); strValue = Strings.utf8ToString( ( byte[] ) value );
@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 ); }
String str = Strings.utf8ToString( ( byte[] ) obj ); String type = ( String ) getParameterTypeString( index ); throw new RuntimeException( I18n.err( I18n.ERR_9200_INTERGER_DECODING_FAILURE, Strings.dumpBytes( ( byte[] ) obj ) ), e );
LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, "null" ) ); strValue = Strings.utf8ToString( ( byte[] ) value );
@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( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequest = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) searchRequest.getTerminalFilter(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05001_EMPTY_MATCHING_RULE ); LOG.error( msg ); // It will generate a PROTOCOL_ERROR throw new DecoderException( msg ); } else { extensibleMatchFilter.setMatchingRule( Strings.utf8ToString( tlv.getValue().getData() ) ); } } } );
LOG.debug( I18n.err( I18n.ERR_13210_SYNTAX_INVALID, "null" ) ); strValue = Strings.utf8ToString( ( byte[] ) value );
@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 ); } } );