/** * {@inheritDoc} */ @Override public void setPreauthOptions(KdcRequest kdcRequest, PluginRequestContext requestContext, KOptions options) { if (options.contains(PkinitOption.X509_IDENTITY)) { pkinitContext.getIdentityOpts().setIdentity(options.getStringOption(PkinitOption.X509_IDENTITY)); } if (options.contains(PkinitOption.X509_ANCHORS)) { String anchorsString = options.getStringOption(PkinitOption.X509_ANCHORS); List<String> anchors; if (anchorsString == null) { anchors = kdcRequest.getContext().getConfig().getPkinitAnchors(); } else { anchors = Arrays.asList(anchorsString); } pkinitContext.getIdentityOpts().getAnchors().addAll(anchors); } if (options.contains(PkinitOption.USING_RSA)) { pkinitContext.getPluginOpts().setUsingRsa(options.getBooleanOption(PkinitOption.USING_RSA, true)); } }
/** * {@inheritDoc} */ @Override public void setPreauthOptions(KdcRequest kdcRequest, PluginRequestContext requestContext, KOptions options) { if (options.contains(PkinitOption.X509_IDENTITY)) { pkinitContext.getIdentityOpts().setIdentity(options.getStringOption(PkinitOption.X509_IDENTITY)); } if (options.contains(PkinitOption.X509_ANCHORS)) { String anchorsString = options.getStringOption(PkinitOption.X509_ANCHORS); List<String> anchors; if (anchorsString == null) { anchors = kdcRequest.getContext().getConfig().getPkinitAnchors(); } else { anchors = Arrays.asList(anchorsString); } pkinitContext.getIdentityOpts().getAnchors().addAll(anchors); } if (options.contains(PkinitOption.USING_RSA)) { pkinitContext.getPluginOpts().setUsingRsa(options.getBooleanOption(PkinitOption.USING_RSA, true)); } }
CmsMessageType.CMS_SIGN_SERVER, signedData); if (kdcRequest.getContext().getConfig().getPkinitAnchors().isEmpty()) { LOG.error("No PKINIT anchors specified"); throw new KrbException("No PKINIT anchors specified"); String anchorFileName = kdcRequest.getContext().getConfig().getPkinitAnchors().get(0);
CmsMessageType.CMS_SIGN_SERVER, signedData); if (kdcRequest.getContext().getConfig().getPkinitAnchors().isEmpty()) { LOG.error("No PKINIT anchors specified"); throw new KrbException("No PKINIT anchors specified"); String anchorFileName = kdcRequest.getContext().getConfig().getPkinitAnchors().get(0);