Examples of KeyType


Examples of com.ibm.sbt.opensocial.domino.oauth.DominoOAuthClient.KeyType

      throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR,
          "The Domino OAuth Store for container " + securityToken.getContainer() + " did not return client information for viewer: " +
      securityToken.getViewerId() + ", service: " + serviceName + " gadget: " + securityToken.getAppUrl());
    }
      OAuthConsumer consumer;
      final KeyType keyType = client.getKeyType();
      if (keyType == KeyType.RSA_PRIVATE) {
        consumer = new OAuthConsumer(null, client.getConsumerKey(), null, provider);
        // The oauth.net java code has lots of magic.  By setting this property here, code thousands
        // of lines away knows that the consumerSecret value in the consumer should be treated as
        // an RSA private key and not an HMAC key.
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventKey.KeyType

    int retryMax = _numRetries;
    int numRetry = 0;
      Connection conn = null;
      PreparedStatement pstmt = null;
      ResultSet rs = null;
    KeyType keyType = _pKeyTypeMap.get(sourceInfo.getEventView());
    String keyName = _pKeyNameMap.get(sourceInfo.getEventView());
    String sql = _eventQueryMap.get(sourceInfo.getEventView());
    String endSrcKey = _endSrcKeyMap.get(sourceInfo.getEventView());

    if (sql == null)
View Full Code Here

Examples of com.netflix.eureka.resources.ResponseCache.KeyType

            @HeaderParam("Accept") final String acceptHeader) {
        if (!PeerAwareInstanceRegistry.getInstance().shouldAllowAccess(false)) {
            return Response.status(Status.FORBIDDEN).build();
        }
        CurrentRequestVersion.set(Version.toEnum(version));
        KeyType keyType = KeyType.JSON;
        if (acceptHeader == null || !acceptHeader.contains("json")) {
            keyType = KeyType.XML;
        }

        Key cacheKey = new Key(Key.EntityType.Application, appName, keyType, CurrentRequestVersion.get());
View Full Code Here

Examples of com.netflix.eureka.resources.ResponseCache.KeyType

        // ready to serve traffic depending on various reasons.
        if (!PeerAwareInstanceRegistry.getInstance().shouldAllowAccess(isRemoteRegionRequested)) {
            return Response.status(Status.FORBIDDEN).build();
        }
        CurrentRequestVersion.set(Version.toEnum(version));
        KeyType keyType = KeyType.JSON;
        if (acceptHeader == null || !acceptHeader.contains(HEADER_JSON_VALUE)) {
            keyType = KeyType.XML;
        }

        Key cacheKey = new Key(Key.EntityType.Application, ResponseCache.ALL_APPS, regions, keyType,
View Full Code Here

Examples of com.netflix.eureka.resources.ResponseCache.KeyType

            Arrays.sort(regions); // So we don't have different caches for same regions queried in different order.
            EurekaMonitors.GET_ALL_DELTA_WITH_REMOTE_REGIONS.increment();
        }

        CurrentRequestVersion.set(Version.toEnum(version));
        KeyType keyType = KeyType.JSON;
        if (acceptHeader == null || !acceptHeader.contains(HEADER_JSON_VALUE)) {
            keyType = KeyType.XML;
        }
        Key cacheKey = new Key(Key.EntityType.Application, ResponseCache.ALL_APPS_DELTA, regions, keyType,
                               CurrentRequestVersion.get());
View Full Code Here

Examples of net.greghaines.jesque.meta.KeyType

         * {@inheritDoc}
         */
        @Override
        public KeyInfo doWork(final Jedis jedis) throws Exception {
            final KeyInfo keyInfo;
            final KeyType type = KeyType.getKeyTypeByValue(jedis.type(this.key));
            if (type == null) {
                keyInfo = null;
            } else {
                switch (type) {
                    case HASH:
View Full Code Here

Examples of net.schmizz.sshj.common.KeyType

        return khFile;
    }

    @Override
    public boolean verify(final String hostname, final int port, final PublicKey key) {
        final KeyType type = KeyType.fromKey(key);
        if (type == KeyType.UNKNOWN)
            return false;

        final String adjustedHostname = (port != 22) ? "[" + hostname + "]:" + port : hostname;
View Full Code Here

Examples of net.schmizz.sshj.common.KeyType

        this.console = console;
    }

    @Override
    protected boolean hostKeyUnverifiableAction(String hostname, PublicKey key) {
        final KeyType type = KeyType.fromKey(key);
        console.printf("The authenticity of host '%s' can't be established.\n" +
                               "%s key fingerprint is %s.\n", hostname, type, SecurityUtils.getFingerprint(key));
        String response = console.readLine("Are you sure you want to continue connecting (yes/no)? ");
        while (!(response.equalsIgnoreCase(YES) || response.equalsIgnoreCase(NO))) {
            response = console.readLine("Please explicitly enter yes/no: ");
View Full Code Here

Examples of net.schmizz.sshj.common.KeyType

        return false;
    }

    @Override
    protected boolean hostKeyChangedAction(Entry entry, String hostname, PublicKey key) {
        final KeyType type = KeyType.fromKey(key);
        final String fp = SecurityUtils.getFingerprint(key);
        final String path = getFile().getAbsolutePath();
        console.printf(
                "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n" +
                        "@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n" +
View Full Code Here

Examples of net.schmizz.sshj.common.KeyType

        return khFile;
    }

    @Override
    public boolean verify(final String hostname, final int port, final PublicKey key) {
        final KeyType type = KeyType.fromKey(key);

        if (type == KeyType.UNKNOWN)
            return false;

        final String adjustedHostname = (port != 22) ? "[" + hostname + "]:" + port : hostname;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.