@Override
    public PublicKey createInstance() {
        return Unchecked.supplier(() -> {
            if (StringUtils.isNotBlank(this.location)) {
                LOGGER.trace("Attempting to read public key from [{}]", this.location);
                val factory = initializePublicKeyFactoryBean();
                return factory.getObject();
            }
            LOGGER.warn("No public key location is defined");
            return null;
        }).get();
    }
Represents a public key for a CAS registered service.

@author Misagh Moayyed
@since 4.1
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/RegisteredServicePublicKeyImpl.java