code
stringlengths
227
324k
indentifier
stringlengths
171
323k
lang
stringclasses
2 values
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
java
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
java
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
java
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor...
java
me.chanjar.weixin.common.error. <mask> <mask> <mask> <mask> <mask> <mask> ; import me.chanjar.weixin.common.service.WxImgProcService; import me.chanjar.weixin.common.service.WxOcrService; import me.chanjar.weixin.common.service.WxService; import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; import me.c...
me.chanjar.weixin.common.error. WxErrorException ; import me.chanjar.weixin.common.service.WxImgProcService; import me.chanjar.weixin.common.service.WxOcrService; import me.chanjar.weixin.common.service.WxService; import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; import me.chanjar.weixin.common.util...
java
me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; import me.chanjar.weixin.common.util.http.RequestExecutor; import me.chanjar.weixin.common.util.http.RequestHttp; /** * The interface Wx ma service. * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ public interface WxMaService extends ...
me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; import me.chanjar.weixin.common.util.http.RequestExecutor; import me.chanjar.weixin.common.util.http.RequestHttp; /** * The interface Wx ma service. * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ public interface WxMaService extends ...
java
= "https://api.weixin.qq.com/wxa/getpaidunionid"; /** 导入抽样数据 */ String SET_DYNAMIC_DATA_URL = "https://api.weixin.qq.com/wxa/setdynamicdata"; /** * 获取登录后的session信息. * * @param jsCode 登录时获取的 code * @return the wx ma jscode 2 session result * @throws <mask> <mask> <mask> <mask> <mask> <mask> the wx error exception */ WxM...
= "https://api.weixin.qq.com/wxa/getpaidunionid"; /** 导入抽样数据 */ String SET_DYNAMIC_DATA_URL = "https://api.weixin.qq.com/wxa/setdynamicdata"; /** * 获取登录后的session信息. * * @param jsCode 登录时获取的 code * @return the wx ma jscode 2 session result * @throws WxErrorException the wx error exception */ WxMaJscode2SessionResult jsC...
java
* @param jsCode 登录时获取的 code * @return the wx ma jscode 2 session result * @throws <mask> <mask> <mask> <mask> <mask> <mask> the wx error exception */ WxMaJscode2SessionResult jsCode2SessionInfo(String jsCode) throws <mask> <mask> <mask> <mask> <mask> <mask> ; /** * 导入抽样数据 * * <pre> * 第三方通过调用微信API,将数据写入到setdynamicdata这个...
* @param jsCode 登录时获取的 code * @return the wx ma jscode 2 session result * @throws WxErrorException the wx error exception */ WxMaJscode2SessionResult jsCode2SessionInfo(String jsCode) throws WxErrorException ; /** * 导入抽样数据 * * <pre> * 第三方通过调用微信API,将数据写入到setdynamicdata这个API。每个Post数据包不超过5K,若数据过多可开多进(线)程并发导入数据(例如:数据量为十万量级...
java
@param lifespan 数据有效时间,秒为单位,一般为86400,一天一次导入的频率 * @param type 用于标识数据所属的服务类目 * @param scene 1代表用于搜索的数据 * @param data 推送到微信后台的数据列表,该数据被微信用于流量分配,注意该字段为string类型而不是object * @throws <mask> <mask> <mask> <mask> <mask> <mask> . */ void setDynamicData(int lifespan, String type, int scene, String data) throws <mask> <mask> <mask>...
@param lifespan 数据有效时间,秒为单位,一般为86400,一天一次导入的频率 * @param type 用于标识数据所属的服务类目 * @param scene 1代表用于搜索的数据 * @param data 推送到微信后台的数据列表,该数据被微信用于流量分配,注意该字段为string类型而不是object * @throws WxErrorException . */ void setDynamicData(int lifespan, String type, int scene, String data) throws WxErrorException ; /** * * * <pre> * 验证消息的确来自...
java
<mask> <mask> <mask> <mask> <mask> <mask> . */ void setDynamicData(int lifespan, String type, int scene, String data) throws <mask> <mask> <mask> <mask> <mask> <mask> ; /** * * * <pre> * 验证消息的确来自微信服务器. * 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319&token=&lang=zh_CN * </pre> * * @param timesta...
WxErrorException . */ void setDynamicData(int lifespan, String type, int scene, String data) throws WxErrorException ; /** * * * <pre> * 验证消息的确来自微信服务器. * 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319&token=&lang=zh_CN * </pre> * * @param timestamp the timestamp * @param nonce the nonce * @param...
java
; /** * * * <pre> * 验证消息的确来自微信服务器. * 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319&token=&lang=zh_CN * </pre> * * @param timestamp the timestamp * @param nonce the nonce * @param signature the signature * @return the boolean */ boolean checkSignature(String timestamp, String nonce, String signa...
; /** * * * <pre> * 验证消息的确来自微信服务器. * 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319&token=&lang=zh_CN * </pre> * * @param timestamp the timestamp * @param nonce the nonce * @param signature the signature * @return the boolean */ boolean checkSignature(String timestamp, String nonce, String signa...
java
* 返回小程序交易组件-售后服务接口 * * @return */ WxMaShopAfterSaleService getShopAfterSaleService(); /** * 返回小程序交易组件-物流服务接口 * * @return */ WxMaShopDeliveryService getShopDeliveryService(); /** * 返回小程序交易组件-订单服务接口 * * @return */ WxMaShopOrderService getShopOrderService(); /** * 返回小程序交易组件-spu商品服务接口 * * @return */ WxMaShopSpuService getS...
* 返回小程序交易组件-售后服务接口 * * @return */ WxMaShopAfterSaleService getShopAfterSaleService(); /** * 返回小程序交易组件-物流服务接口 * * @return */ WxMaShopDeliveryService getShopDeliveryService(); /** * 返回小程序交易组件-订单服务接口 * * @return */ WxMaShopOrderService getShopOrderService(); /** * 返回小程序交易组件-spu商品服务接口 * * @return */ WxMaShopSpuService getS...
java
/** * 返回小程序交易组件-物流服务接口 * * @return */ WxMaShopDeliveryService getShopDeliveryService(); /** * 返回小程序交易组件-订单服务接口 * * @return */ WxMaShopOrderService getShopOrderService(); /** * 返回小程序交易组件-spu商品服务接口 * * @return */ WxMaShopSpuService getShopSpuService(); /** * 返回小程序交易组件-接入申请接口 * * @return */ WxMaShopRegisterService getShop...
/** * 返回小程序交易组件-物流服务接口 * * @return */ WxMaShopDeliveryService getShopDeliveryService(); /** * 返回小程序交易组件-订单服务接口 * * @return */ WxMaShopOrderService getShopOrderService(); /** * 返回小程序交易组件-spu商品服务接口 * * @return */ WxMaShopSpuService getShopSpuService(); /** * 返回小程序交易组件-接入申请接口 * * @return */ WxMaShopRegisterService getShop...
java
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
java
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
java
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
java
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ServerTryCancelGeneralMatchNotify.proto package emu.grasscutter.net.proto; public final class ServerTryCancelGeneralMatchNotifyOuterClass { private ServerTryCancelGeneralMatchNotifyOuterClass() {} public static void registerAllExtensions( com.google....
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ServerTryCancelGeneralMatchNotify.proto package emu.grasscutter.net.proto; public final class ServerTryCancelGeneralMatchNotifyOuterClass { private ServerTryCancelGeneralMatchNotifyOuterClass() {} public static void registerAllExtensions( com.google....
java
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatc...
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatc...
java
{ return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input)...
{ return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input)...
java
(other.getMatchId() != 0) { setMatchId(other.getMatchId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf....
(other.getMatchId() != 0) { setMatchId(other.getMatchId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf....
java
final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralM...
final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralM...
java
} @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify parsedMessage = null; try { parsed...
} @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify parsedMessage = null; try { parsed...
java
com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensi...
com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensi...
java
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally {...
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally {...
java
} catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return ...
} catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return ...
java
(emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int matchId_ ; /** * <code>uint32 match_id = 7;</code> * @return ...
(emu.grasscutter.net.proto.ServerTryCancelGeneralMatchNotifyOuterClass.ServerTryCancelGeneralMatchNotify) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int matchId_ ; /** * <code>uint32 match_id = 7;</code> * @return ...
java
(parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int matchId_ ; /** * <code>uint32 match_id = 7;</code> * @return The matchId. */ @java.lang.Override public int getMatchId() { return matchId_; } /** * <code>uint32 match_id = 7;</code> * @param value The matchId to set. * @return This build...
(parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int matchId_ ; /** * <code>uint32 match_id = 7;</code> * @return The matchId. */ @java.lang.Override public int getMatchId() { return matchId_; } /** * <code>uint32 match_id = 7;</code> * @param value The matchId to set. * @return This build...
java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ElectroherculesBattleStageInfo.proto package emu.grasscutter.net.proto; public final class ElectroherculesBattleStageInfoOuterClass { private ElectroherculesBattleStageInfoOuterClass() {} public static void registerAllExtensions( com.google.protobuf....
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ElectroherculesBattleStageInfo.proto package emu.grasscutter.net.proto; public final class ElectroherculesBattleStageInfoOuterClass { private ElectroherculesBattleStageInfoOuterClass() {} public static void registerAllExtensions( com.google.protobuf....
java
extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ElectroherculesBattleStageInfoOuterClass.ElectroherculesBattleStageInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com....
extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ElectroherculesBattleStageInfoOuterClass.ElectroherculesBattleStageInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com....
java
= null; levelInfoList_ = other.levelInfoList_; bitField0_ = (bitField0_ & ~0x00000001); levelInfoListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLevelInfoListFieldBuilder() : null; } else { levelInfoListBuilder_.addAllMessages(other.levelInfoList_); } } } this.mergeUnknownFields(other....
= null; levelInfoList_ = other.levelInfoList_; bitField0_ = (bitField0_ & ~0x00000001); levelInfoListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLevelInfoListFieldBuilder() : null; } else { levelInfoListBuilder_.addAllMessages(other.levelInfoList_); } } } this.mergeUnknownFields(other....
java
throw new NullPointerException(); } ensureLevelInfoListIsMutable(); levelInfoList_.set(index, value); onChanged(); } else { levelInfoListBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ElectroherculesBattleLevelInfo level_info_list = 3;</code> */ public Builder setLevelInfoList( int index, emu...
throw new NullPointerException(); } ensureLevelInfoListIsMutable(); levelInfoList_.set(index, value); onChanged(); } else { levelInfoListBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .ElectroherculesBattleLevelInfo level_info_list = 3;</code> */ public Builder setLevelInfoList( int index, emu...
java
/* * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
java
Hoeller * @author Sam Brannen * @since 3.0 * @see org.springframework.context.annotation.AnnotationConfigApplicationContext * @see org.springframework.web.context.support.GenericWebApplicationContext */ public class AnnotationConfigWebApplicationContext extends AbstractRefreshableWebApplicationContext implements Annota...
Hoeller * @author Sam Brannen * @since 3.0 * @see org.springframework.context.annotation.AnnotationConfigApplicationContext * @see org.springframework.web.context.support.GenericWebApplicationContext */ public class AnnotationConfigWebApplicationContext extends AbstractRefreshableWebApplicationContext implements Annota...
java
*/ public void setBeanNameGenerator(@Nullable BeanNameGenerator beanNameGenerator) { this.beanNameGenerator = beanNameGenerator; } /** * Return the custom {@link BeanNameGenerator} for use with {@link AnnotatedBeanDefinitionReader} * and/or {@link ClassPathBeanDefinitionScanner}, if any. */ protected @Nullable BeanName...
*/ public void setBeanNameGenerator(@Nullable BeanNameGenerator beanNameGenerator) { this.beanNameGenerator = beanNameGenerator; } /** * Return the custom {@link BeanNameGenerator} for use with {@link AnnotatedBeanDefinitionReader} * and/or {@link ClassPathBeanDefinitionScanner}, if any. */ protected @Nullable BeanName...
java
package org.keycloak.testsuite.broker; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.hamcrest.Matchers; import...
package org.keycloak.testsuite.broker; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.hamcrest.Matchers; import...
java
to be overriden. Feel free to remove "final" if you really know what you are doing. */ public final class KcOidcBrokerTest extends AbstractAdvancedBrokerTest { private final static String USER_ATTRIBUTE_NAME = "user-attribute"; private final static String USER_ATTRIBUTE_VALUE = "attribute-value"; private final static S...
to be overriden. Feel free to remove "final" if you really know what you are doing. */ public final class KcOidcBrokerTest extends AbstractAdvancedBrokerTest { private final static String USER_ATTRIBUTE_NAME = "user-attribute"; private final static String USER_ATTRIBUTE_VALUE = "attribute-value"; private final static S...
java
logoutFromRealm(getProviderRoot(), bc.providerRealmName()); } @Test public void loginFetchingUserFromUserEndpoint() { loginFetchingUserFromUserEndpoint(false); } private void loginFetchingUserFromUserEndpoint(boolean loginIsDenied) { RealmResource realm = realmsResouce().realm(bc.providerRealmName()); ClientsResource c...
logoutFromRealm(getProviderRoot(), bc.providerRealmName()); } @Test public void loginFetchingUserFromUserEndpoint() { loginFetchingUserFromUserEndpoint(false); } private void loginFetchingUserFromUserEndpoint(boolean loginIsDenied) { RealmResource realm = realmsResouce().realm(bc.providerRealmName()); ClientsResource c...
java
test suite: org.keycloak.testsuite.broker.OIDCBrokerUserPropertyTest */ @Test public void loginFetchingUserFromUserEndpointWithClaimMapper() { RealmResource realm = realmsResouce().realm(bc.providerRealmName()); ClientsResource clients = realm.clients(); ClientRepresentation brokerApp = clients.findByClientId("brokerap...
test suite: org.keycloak.testsuite.broker.OIDCBrokerUserPropertyTest */ @Test public void loginFetchingUserFromUserEndpointWithClaimMapper() { RealmResource realm = realmsResouce().realm(bc.providerRealmName()); ClientsResource clients = realm.clients(); ClientRepresentation brokerApp = clients.findByClientId("brokerap...
java
client = session.clients().getClientByClientId(realm, "broker-app"); List<UserSessionModel> userSessions = session.sessions().getUserSessionsStream(realm, client).toList(); assertThat(userSessions, hasSize(1)); UserSessionModel userSession = userSessions.get(0); assertThat(AuthenticationManager.isSessionValid(realm, us...
client = session.clients().getClientByClientId(realm, "broker-app"); List<UserSessionModel> userSessions = session.sessions().getUserSessionsStream(realm, client).toList(); assertThat(userSessions, hasSize(1)); UserSessionModel userSession = userSessions.get(0); assertThat(AuthenticationManager.isSessionValid(realm, us...
java
removed AccountHelper.logout(adminClient.realm(bc.consumerRealmName()), bc.getUserLogin()); // session should have been removed now testingClient.server(bc.consumerRealmName()).run(session -> { RealmModel realm = session.getContext().getRealm(); ClientModel client = session.clients().getClientByClientId(realm, "broker-...
removed AccountHelper.logout(adminClient.realm(bc.consumerRealmName()), bc.getUserLogin()); // session should have been removed now testingClient.server(bc.consumerRealmName()).run(session -> { RealmModel realm = session.getContext().getRealm(); ClientModel client = session.clients().getClientByClientId(realm, "broker-...
java
hasSize(0)); }); loginPage.open(bc.consumerRealmName()); assertThat(loginPage.isSocialButtonPresent(bc.getIDPAlias()), is(false)); } @Test public void testInvalidAudience() { loginUser(); AccountHelper.logout(adminClient.realm(bc.consumerRealmName()), bc.getUserLogin()); AccountHelper.logout(adminClient.realm(bc.provid...
hasSize(0)); }); loginPage.open(bc.consumerRealmName()); assertThat(loginPage.isSocialButtonPresent(bc.getIDPAlias()), is(false)); } @Test public void testInvalidAudience() { loginUser(); AccountHelper.logout(adminClient.realm(bc.consumerRealmName()), bc.getUserLogin()); AccountHelper.logout(adminClient.realm(bc.provid...
java
loginFetchingUserFromUserEndpoint(); UserRepresentation user = getFederatedIdentity(); Assert.assertNotNull(user); } @Test public void denyLoginWithClaimFilter() { IdentityProviderResource identityProviderResource = getIdentityProviderResource(); IdentityProviderRepresentation identityProvider = identityProviderResourc...
loginFetchingUserFromUserEndpoint(); UserRepresentation user = getFederatedIdentity(); Assert.assertNotNull(user); } @Test public void denyLoginWithClaimFilter() { IdentityProviderResource identityProviderResource = getIdentityProviderResource(); IdentityProviderRepresentation identityProvider = identityProviderResourc...
java
= idProviderResource.toRepresentation(); assertThat("Cannot get Identity Provider", idProvider, Matchers.notNullValue()); assertThat("Filtered by claim didn't change", idProvider.getConfig().get(IdentityProviderModel.FILTERED_BY_CLAIMS), Matchers.equalTo(Boolean.toString(filteredByClaim))); assertThat("Claim name didn'...
= idProviderResource.toRepresentation(); assertThat("Cannot get Identity Provider", idProvider, Matchers.notNullValue()); assertThat("Filtered by claim didn't change", idProvider.getConfig().get(IdentityProviderModel.FILTERED_BY_CLAIMS), Matchers.equalTo(Boolean.toString(filteredByClaim))); assertThat("Claim name didn'...
java
consumerUser = foundUsers.get(0); assertThat(consumerUser, Matchers.notNullValue()); String consumerUserID = consumerUser.getId(); UserResource consumerUserResource = consumerRealmResource.users().get(consumerUserID); checkFederatedIdentityLink(consumerUserResource, providerUserID, USERNAME); assertThat(consumerUserRes...
consumerUser = foundUsers.get(0); assertThat(consumerUser, Matchers.notNullValue()); String consumerUserID = consumerUser.getId(); UserResource consumerUserResource = consumerRealmResource.users().get(consumerUserID); checkFederatedIdentityLink(consumerUserResource, providerUserID, USERNAME); assertThat(consumerUserRes...
java
: LAST_NAME)); consumerUserResource = consumerRealmResource.users().get(consumerUserID); checkFederatedIdentityLink(consumerUserResource, providerUserID, isForceSync ? NEW_USERNAME : USERNAME); // the email verified should be reverted to false if force-sync and not trust-email assertThat(consumerUserResource.toRepresen...
: LAST_NAME)); consumerUserResource = consumerRealmResource.users().get(consumerUserID); checkFederatedIdentityLink(consumerUserResource, providerUserID, isForceSync ? NEW_USERNAME : USERNAME); // the email verified should be reverted to false if force-sync and not trust-email assertThat(consumerUserResource.toRepresen...
java
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the A...
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the A...
java
and limitations * under the License. */ /* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. */ package com.sun.org.apache.xml.internal.security.algorithms.implementations; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.Key; import java.s...
and limitations * under the License. */ /* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. */ package com.sun.org.apache.xml.internal.security.algorithms.implementations; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.Key; import java.s...
java
License. */ /* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. */ package com.sun.org.apache.xml.internal.security.algorithms.implementations; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.Key; import java.security.NoSuchAlgorithmExcep...
License. */ /* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. */ package com.sun.org.apache.xml.internal.security.algorithms.implementations; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.Key; import java.security.NoSuchAlgorithmExcep...
java
and/or its affiliates. All rights reserved. */ package com.sun.org.apache.xml.internal.security.algorithms.implementations; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.Key; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderExc...
and/or its affiliates. All rights reserved. */ package com.sun.org.apache.xml.internal.security.algorithms.implementations; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.Key; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderExc...
java
Signature signatureAlgorithm; /** Length for each integer in signature */ private int signIntLen = -1; /** * Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @pa...
Signature signatureAlgorithm; /** Length for each integer in signature */ private int signIntLen = -1; /** * Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @pa...
java
-1; /** * Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param asn1Bytes * @param rawLen * @return the decode bytes * * @throws IOException * @see <A HREF="ht...
-1; /** * Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param asn1Bytes * @param rawLen * @return the decode bytes * * @throws IOException * @see <A HREF="ht...
java
ECDSA Value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param asn1Bytes * @param rawLen * @return the decode bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * ...
ECDSA Value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param asn1Bytes * @param rawLen * @return the decode bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * ...
java
(r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param asn1Bytes * @param rawLen * @return the decode bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4050.txt">3.3. ECDSA Signat...
(r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param asn1Bytes * @param rawLen * @return the decode bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4050.txt">3.3. ECDSA Signat...
java
* @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4050.txt">3.3. ECDSA Signatures</A> */ public static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes, int rawLen) throws IOException { return ECDSAUtils.convertASN1toXMLDSIG(asn1Bytes, rawLen); }...
* @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4050.txt">3.3. ECDSA Signatures</A> */ public static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes, int rawLen) throws IOException { return ECDSAUtils.convertASN1toXMLDSIG(asn1Bytes, rawLen); }...
java
static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes, int rawLen) throws IOException { return ECDSAUtils.convertASN1toXMLDSIG(asn1Bytes, rawLen); } /** * Converts a XML Signature ECDSA Value to an ASN.1 DSA value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature re...
static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes, int rawLen) throws IOException { return ECDSAUtils.convertASN1toXMLDSIG(asn1Bytes, rawLen); } /** * Converts a XML Signature ECDSA Value to an ASN.1 DSA value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature re...
java
/** * Converts a XML Signature ECDSA Value to an ASN.1 DSA value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param xmldsigBytes * @return the encoded ASN.1 bytes * * @throws IOException * @see <A HREF="http://www.w3....
/** * Converts a XML Signature ECDSA Value to an ASN.1 DSA value. * * The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param xmldsigBytes * @return the encoded ASN.1 bytes * * @throws IOException * @see <A HREF="http://www.w3....
java
algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param xmldsigBytes * @return the encoded ASN.1 bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4...
algorithm creates ASN.1 encoded (r, s) value * pairs; the XML Signature requires the core BigInteger values. * * @param xmldsigBytes * @return the encoded ASN.1 bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4...
java
BigInteger values. * * @param xmldsigBytes * @return the encoded ASN.1 bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4050.txt">3.3. ECDSA Signatures</A> */ public static byte[] convertXMLDSIGtoASN1(byte[] xml...
BigInteger values. * * @param xmldsigBytes * @return the encoded ASN.1 bytes * * @throws IOException * @see <A HREF="http://www.w3.org/TR/xmldsig-core/#dsa-sha1">6.4.1 DSA</A> * @see <A HREF="ftp://ftp.rfc-editor.org/in-notes/rfc4050.txt">3.3. ECDSA Signatures</A> */ public static byte[] convertXMLDSIGtoASN1(byte[] xml...
java
* Constructor SignatureRSA * * @throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSA() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { this(null); } public SignatureECDSA(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { String algorithmID = JCEMapper.tra...
* Constructor SignatureRSA * * @throws XMLSignatureException */ public SignatureECDSA() throws XMLSignatureException { this(null); } public SignatureECDSA(Provider provider) throws XMLSignatureException { String algorithmID = JCEMapper.translateURItoJCEID(this.engineGetURI()); LOG.debug("Created SignatureECDSA using {}...
java
} public SignatureECDSA(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { String algorithmID = JCEMapper.translateURItoJCEID(this.engineGetURI()); LOG.debug("Created SignatureECDSA using {}", algorithmID); try { if (provider == null) { String providerId = JCEMapper.getProviderId(); if (provid...
} public SignatureECDSA(Provider provider) throws XMLSignatureException { String algorithmID = JCEMapper.translateURItoJCEID(this.engineGetURI()); LOG.debug("Created SignatureECDSA using {}", algorithmID); try { if (provider == null) { String providerId = JCEMapper.getProviderId(); if (providerId == null) { this.signat...
java
SignatureECDSA using {}", algorithmID); try { if (provider == null) { String providerId = JCEMapper.getProviderId(); if (providerId == null) { this.signatureAlgorithm = Signature.getInstance(algorithmID); } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, providerId); } } else { this.signatureAlgorit...
SignatureECDSA using {}", algorithmID); try { if (provider == null) { String providerId = JCEMapper.getProviderId(); if (providerId == null) { this.signatureAlgorithm = Signature.getInstance(algorithmID); } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, providerId); } } else { this.signatureAlgorit...
java
= JCEMapper.getProviderId(); if (providerId == null) { this.signatureAlgorithm = Signature.getInstance(algorithmID); } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, providerId); } } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, provider); } } catch (NoSuchAlgorithmException |...
= JCEMapper.getProviderId(); if (providerId == null) { this.signatureAlgorithm = Signature.getInstance(algorithmID); } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, providerId); } } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, provider); } } catch (NoSuchAlgorithmException |...
java
{ this.signatureAlgorithm = Signature.getInstance(algorithmID, providerId); } } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, provider); } } catch (NoSuchAlgorithmException | NoSuchProviderException ex) { Object[] exArgs = { algorithmID, ex.getLocalizedMessage() }; throw new <mask> <mask> <mask> <...
{ this.signatureAlgorithm = Signature.getInstance(algorithmID, providerId); } } else { this.signatureAlgorithm = Signature.getInstance(algorithmID, provider); } } catch (NoSuchAlgorithmException | NoSuchProviderException ex) { Object[] exArgs = { algorithmID, ex.getLocalizedMessage() }; throw new XMLSignatureException ...
java
| NoSuchProviderException ex) { Object[] exArgs = { algorithmID, ex.getLocalizedMessage() }; throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> ("algorithms.NoSuchAlgorithm", exArgs); } } /** {@inheritDoc} */ @Override protected void engineSetParameter(AlgorithmParameterSpec params) throws <mask> <mask> <mask> ...
| NoSuchProviderException ex) { Object[] exArgs = { algorithmID, ex.getLocalizedMessage() }; throw new XMLSignatureException ("algorithms.NoSuchAlgorithm", exArgs); } } /** {@inheritDoc} */ @Override protected void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException { try { this.signatureAlgo...
java
("algorithms.NoSuchAlgorithm", exArgs); } } /** {@inheritDoc} */ @Override protected void engineSetParameter(AlgorithmParameterSpec params) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { this.signatureAlgorithm.setParameter(params); } catch (InvalidAlgorithmParameterException ex) { throw new <mask> <ma...
("algorithms.NoSuchAlgorithm", exArgs); } } /** {@inheritDoc} */ @Override protected void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException { try { this.signatureAlgorithm.setParameter(params); } catch (InvalidAlgorithmParameterException ex) { throw new XMLSignatureException (ex); } } /** {...
java
engineVerify(byte[] signature) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { byte[] jcebytes = SignatureECDSA.convertXMLDSIGtoASN1(signature); if (LOG.isDebugEnabled()) { LOG.debug("Called ECDSA.verify() on " + XMLUtils.encodeToString(signature)); } return this.signatureAlgorithm.verify(jcebytes); } c...
engineVerify(byte[] signature) throws XMLSignatureException { try { byte[] jcebytes = SignatureECDSA.convertXMLDSIGtoASN1(signature); if (LOG.isDebugEnabled()) { LOG.debug("Called ECDSA.verify() on " + XMLUtils.encodeToString(signature)); } return this.signatureAlgorithm.verify(jcebytes); } catch (SignatureException | ...
java
{ try { byte[] jcebytes = SignatureECDSA.convertXMLDSIGtoASN1(signature); if (LOG.isDebugEnabled()) { LOG.debug("Called ECDSA.verify() on " + XMLUtils.encodeToString(signature)); } return this.signatureAlgorithm.verify(jcebytes); } catch (SignatureException | IOException ex) { throw new <mask> <mask> <mask> <mask> <mas...
{ try { byte[] jcebytes = SignatureECDSA.convertXMLDSIGtoASN1(signature); if (LOG.isDebugEnabled()) { LOG.debug("Called ECDSA.verify() on " + XMLUtils.encodeToString(signature)); } return this.signatureAlgorithm.verify(jcebytes); } catch (SignatureException | IOException ex) { throw new XMLSignatureException (ex); } } ...
java
} return this.signatureAlgorithm.verify(jcebytes); } catch (SignatureException | IOException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected void engineInitVerify(Key publicKey) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { engineInitVerify...
} return this.signatureAlgorithm.verify(jcebytes); } catch (SignatureException | IOException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected void engineInitVerify(Key publicKey) throws XMLSignatureException { engineInitVerify(publicKey, signatureAlgorithm); } /** {@inheritDoc} *...
java
catch (SignatureException | IOException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected void engineInitVerify(Key publicKey) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { engineInitVerify(publicKey, signatureAlgorithm); } /** {@inheritDoc} ...
catch (SignatureException | IOException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected void engineInitVerify(Key publicKey) throws XMLSignatureException { engineInitVerify(publicKey, signatureAlgorithm); } /** {@inheritDoc} */ @Override protected byte[] engineSign() throws XMLS...
java
engineInitVerify(publicKey, signatureAlgorithm); } /** {@inheritDoc} */ @Override protected byte[] engineSign() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { byte[] jcebytes = this.signatureAlgorithm.sign(); return SignatureECDSA.convertASN1toXMLDSIG(jcebytes, signIntLen); } catch (SignatureException ...
engineInitVerify(publicKey, signatureAlgorithm); } /** {@inheritDoc} */ @Override protected byte[] engineSign() throws XMLSignatureException { try { byte[] jcebytes = this.signatureAlgorithm.sign(); return SignatureECDSA.convertASN1toXMLDSIG(jcebytes, signIntLen); } catch (SignatureException | IOException ex) { throw n...
java
*/ @Override protected byte[] engineSign() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { byte[] jcebytes = this.signatureAlgorithm.sign(); return SignatureECDSA.convertASN1toXMLDSIG(jcebytes, signIntLen); } catch (SignatureException | IOException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mas...
*/ @Override protected byte[] engineSign() throws XMLSignatureException { try { byte[] jcebytes = this.signatureAlgorithm.sign(); return SignatureECDSA.convertASN1toXMLDSIG(jcebytes, signIntLen); } catch (SignatureException | IOException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override pro...
java
try { byte[] jcebytes = this.signatureAlgorithm.sign(); return SignatureECDSA.convertASN1toXMLDSIG(jcebytes, signIntLen); } catch (SignatureException | IOException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected void engineInitSign(Key privateKey, Secu...
try { byte[] jcebytes = this.signatureAlgorithm.sign(); return SignatureECDSA.convertASN1toXMLDSIG(jcebytes, signIntLen); } catch (SignatureException | IOException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected void engineInitSign(Key privateKey, SecureRandom secureRandom) thro...
java
if (privateKey instanceof ECPrivateKey) { ECPrivateKey ecKey = (ECPrivateKey) privateKey; signIntLen = (ecKey.getParams().getCurve().getField().getFieldSize() + 7) / 8; // If not ECPrivateKey, signIntLen remains -1 } engineInitSign(privateKey, secureRandom, this.signatureAlgorithm); } /** {@inheritDoc} */ @Override pro...
if (privateKey instanceof ECPrivateKey) { ECPrivateKey ecKey = (ECPrivateKey) privateKey; signIntLen = (ecKey.getParams().getCurve().getField().getFieldSize() + 7) / 8; // If not ECPrivateKey, signIntLen remains -1 } engineInitSign(privateKey, secureRandom, this.signatureAlgorithm); } /** {@inheritDoc} */ @Override pro...
java
ECPrivateKey ecKey = (ECPrivateKey) privateKey; signIntLen = (ecKey.getParams().getCurve().getField().getFieldSize() + 7) / 8; // If not ECPrivateKey, signIntLen remains -1 } engineInitSign(privateKey, secureRandom, this.signatureAlgorithm); } /** {@inheritDoc} */ @Override protected void engineInitSign(Key privateKey)...
ECPrivateKey ecKey = (ECPrivateKey) privateKey; signIntLen = (ecKey.getParams().getCurve().getField().getFieldSize() + 7) / 8; // If not ECPrivateKey, signIntLen remains -1 } engineInitSign(privateKey, secureRandom, this.signatureAlgorithm); } /** {@inheritDoc} */ @Override protected void engineInitSign(Key privateKey)...
java
+ 7) / 8; // If not ECPrivateKey, signIntLen remains -1 } engineInitSign(privateKey, secureRandom, this.signatureAlgorithm); } /** {@inheritDoc} */ @Override protected void engineInitSign(Key privateKey) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { engineInitSign(privateKey, (SecureRandom)null); } /** {@in...
+ 7) / 8; // If not ECPrivateKey, signIntLen remains -1 } engineInitSign(privateKey, secureRandom, this.signatureAlgorithm); } /** {@inheritDoc} */ @Override protected void engineInitSign(Key privateKey) throws XMLSignatureException { engineInitSign(privateKey, (SecureRandom)null); } /** {@inheritDoc} */ @Override prot...
java
engineUpdate(byte[] input) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { this.signatureAlgorithm.update(input); } catch (SignatureException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected void engineUpdate(byte input) throws <mask> <m...
engineUpdate(byte[] input) throws XMLSignatureException { try { this.signatureAlgorithm.update(input); } catch (SignatureException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected void engineUpdate(byte input) throws XMLSignatureException { try { this.signatureAlgorithm.update(in...
java
try { this.signatureAlgorithm.update(input); } catch (SignatureException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected void engineUpdate(byte input) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { this.signatureAlgorithm.update(input)...
try { this.signatureAlgorithm.update(input); } catch (SignatureException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected void engineUpdate(byte input) throws XMLSignatureException { try { this.signatureAlgorithm.update(input); } catch (SignatureException ex) { throw new XMLSigna...
java
throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected void engineUpdate(byte input) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { this.signatureAlgorithm.update(input); } catch (SignatureException ex) { throw new <mask> <mask> <mask> <mask> <mask...
throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected void engineUpdate(byte input) throws XMLSignatureException { try { this.signatureAlgorithm.update(input); } catch (SignatureException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected void engineUpd...
java
void engineUpdate(byte[] buf, int offset, int len) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { this.signatureAlgorithm.update(buf, offset, len); } catch (SignatureException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected String engi...
void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureException { try { this.signatureAlgorithm.update(buf, offset, len); } catch (SignatureException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected String engineGetJCEAlgorithmString() { return this.signatureAlgor...
java
int len) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { try { this.signatureAlgorithm.update(buf, offset, len); } catch (SignatureException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected String engineGetJCEAlgorithmString() { return this.si...
int len) throws XMLSignatureException { try { this.signatureAlgorithm.update(buf, offset, len); } catch (SignatureException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected String engineGetJCEAlgorithmString() { return this.signatureAlgorithm.getAlgorithm(); } /** {@inheritDoc} *...
java
offset, len); } catch (SignatureException ex) { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> (ex); } } /** {@inheritDoc} */ @Override protected String engineGetJCEAlgorithmString() { return this.signatureAlgorithm.getAlgorithm(); } /** {@inheritDoc} */ @Override protected String engineGetJCEProviderName()...
offset, len); } catch (SignatureException ex) { throw new XMLSignatureException (ex); } } /** {@inheritDoc} */ @Override protected String engineGetJCEAlgorithmString() { return this.signatureAlgorithm.getAlgorithm(); } /** {@inheritDoc} */ @Override protected String engineGetJCEProviderName() { return this.signatureAlg...
java
{@inheritDoc} */ @Override protected void engineSetHMACOutputLength(int HMACOutputLength) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> ("algorithms.HMACOutputLengthOnlyForHMAC"); } /** {@inheritDoc} */ @Override protected void engineInitSign( Key s...
{@inheritDoc} */ @Override protected void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureException { throw new XMLSignatureException ("algorithms.HMACOutputLengthOnlyForHMAC"); } /** {@inheritDoc} */ @Override protected void engineInitSign( Key signingKey, AlgorithmParameterSpec algorithmParameterSp...
java
engineSetHMACOutputLength(int HMACOutputLength) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> ("algorithms.HMACOutputLengthOnlyForHMAC"); } /** {@inheritDoc} */ @Override protected void engineInitSign( Key signingKey, AlgorithmParameterSpec algorith...
engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureException { throw new XMLSignatureException ("algorithms.HMACOutputLengthOnlyForHMAC"); } /** {@inheritDoc} */ @Override protected void engineInitSign( Key signingKey, AlgorithmParameterSpec algorithmParameterSpec ) throws XMLSignatureException { throw ...
java
("algorithms.HMACOutputLengthOnlyForHMAC"); } /** {@inheritDoc} */ @Override protected void engineInitSign( Key signingKey, AlgorithmParameterSpec algorithmParameterSpec ) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { throw new <mask> <mask> <mask> <mask> <mask> <mask> <mask> ("algorithms.CannotUseAlgorithm...
("algorithms.HMACOutputLengthOnlyForHMAC"); } /** {@inheritDoc} */ @Override protected void engineInitSign( Key signingKey, AlgorithmParameterSpec algorithmParameterSpec ) throws XMLSignatureException { throw new XMLSignatureException ("algorithms.CannotUseAlgorithmParameterSpecOnRSA"); } /** * Class SignatureECDSASHA1...
java
* Constructor SignatureECDSASHA1 * * @throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA1() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA1(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** ...
* Constructor SignatureECDSASHA1 * * @throws XMLSignatureException */ public SignatureECDSASHA1() throws XMLSignatureException { super(); } public SignatureECDSASHA1(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALG...
java
@throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA1() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA1(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public Str...
@throws XMLSignatureException */ public SignatureECDSASHA1() throws XMLSignatureException { super(); } public SignatureECDSASHA1(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1; } } /** * ...
java
super(); } public SignatureECDSASHA1(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1; } } /** * Class SignatureECDSASHA224 */ public static class SignatureECDSAS...
super(); } public SignatureECDSASHA1(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1; } } /** * Class SignatureECDSASHA224 */ public static class SignatureECDSASHA224 extends SignatureECDS...
java
Constructor SignatureECDSASHA224 * * @throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA224() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA224(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } ...
Constructor SignatureECDSASHA224 * * @throws XMLSignatureException */ public SignatureECDSASHA224() throws XMLSignatureException { super(); } public SignatureECDSASHA224(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature...
java
<mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA224() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA224(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String ...
XMLSignatureException */ public SignatureECDSASHA224() throws XMLSignatureException { super(); } public SignatureECDSASHA224(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA224; } } /** * Cl...
java
} public SignatureECDSASHA224(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA224; } } /** * Class SignatureECDSASHA256 * */ public static class SignatureECDSASHA2...
} public SignatureECDSASHA224(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA224; } } /** * Class SignatureECDSASHA256 * */ public static class SignatureECDSASHA256 extends SignatureECDSA {...
java
Constructor SignatureECDSASHA256 * * @throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA256() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA256(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } ...
Constructor SignatureECDSASHA256 * * @throws XMLSignatureException */ public SignatureECDSASHA256() throws XMLSignatureException { super(); } public SignatureECDSASHA256(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature...
java
<mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA256() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA256(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String ...
XMLSignatureException */ public SignatureECDSASHA256() throws XMLSignatureException { super(); } public SignatureECDSASHA256(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256; } } /** * Cl...
java
} public SignatureECDSASHA256(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256; } } /** * Class SignatureECDSASHA384 * */ public static class SignatureECDSASHA3...
} public SignatureECDSASHA256(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256; } } /** * Class SignatureECDSASHA384 * */ public static class SignatureECDSASHA384 extends SignatureECDSA {...
java
Constructor SignatureECDSASHA384 * * @throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA384() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA384(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } ...
Constructor SignatureECDSASHA384 * * @throws XMLSignatureException */ public SignatureECDSASHA384() throws XMLSignatureException { super(); } public SignatureECDSASHA384(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature...
java
<mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA384() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA384(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String ...
XMLSignatureException */ public SignatureECDSASHA384() throws XMLSignatureException { super(); } public SignatureECDSASHA384(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384; } } /** * Cl...
java
} public SignatureECDSASHA384(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384; } } /** * Class SignatureECDSASHA512 * */ public static class SignatureECDSASHA5...
} public SignatureECDSASHA384(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384; } } /** * Class SignatureECDSASHA512 * */ public static class SignatureECDSASHA512 extends SignatureECDSA {...
java
* Constructor SignatureECDSASHA512 * * @throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA512() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA512(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); ...
* Constructor SignatureECDSASHA512 * * @throws XMLSignatureException */ public SignatureECDSASHA512() throws XMLSignatureException { super(); } public SignatureECDSASHA512(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignatu...
java
@throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> */ public SignatureECDSASHA512() throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(); } public SignatureECDSASHA512(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public...
@throws XMLSignatureException */ public SignatureECDSASHA512() throws XMLSignatureException { super(); } public SignatureECDSASHA512(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512; } } ...
java
super(); } public SignatureECDSASHA512(Provider provider) throws <mask> <mask> <mask> <mask> <mask> <mask> <mask> { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512; } } /** * Class SignatureECDSASHA3-224 * */ public static class Signatu...
super(); } public SignatureECDSASHA512(Provider provider) throws XMLSignatureException { super(provider); } /** {@inheritDoc} */ @Override public String engineGetURI() { return XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512; } } /** * Class SignatureECDSASHA3-224 * */ public static class SignatureECDSASHA3_224 extends Sig...
java