All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bali.notary.handlers.PrivateKeyHandler Maven / Gradle / Ivy

There is a newer version: 3.6
Show newest version
/************************************************************************
 * Copyright (c) Crater Dog Technologies(TM).  All Rights Reserved.     *
 ************************************************************************
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.        *
 *                                                                      *
 * This code is free software; you can redistribute it and/or modify it *
 * under the terms of The MIT License (MIT), as published by the Open   *
 * Source Initiative. (See http://opensource.org/licenses/MIT)          *
 ************************************************************************/
package bali.notary.handlers;

import bali.language.handlers.JavaTypeHandler;
import bali.language.nodes.NoneNode;
import java.security.PrivateKey;


/**
 * This class handles the marshaling of a private key into a PEM string.  Since
 * the private key must be kept secret this class simply returns a default message.
 *
 * @author Derk Norton
 */
public final class PrivateKeyHandler implements JavaTypeHandler {

    @Override
    public  NoneNode fromObject(T privateKey, Class... parameterTypes) {
        return NoneNode.NONE;
    }


    @Override
    public  PrivateKey toObject(N noneNode, Class targetType, Class... parameterTypes) {
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy